RAL Classic color

RAL 7002 Olive grey #7E7B52

RAL 7002 Olive grey is shown here as #7E7B52, a widely published sRGB approximation of the printed swatch. It is a muted yellow in the brown family. In OKLCH it sits at lightness 0.575, chroma 0.059 and hue 104.5°. The nearest CSS named color is darkolivegreen (#556B2F), ΔE2000 12.0 away.

Relative luminance
0.1921
OKLCH L · C · h
0.575 · 0.059 · 104.5
Best text
Black 4.84:1
Hue family
Brown

#7E7B52 color codes

HEX
#7E7B52
RGB
rgb(126, 123, 82)
HSL
hsl(56, 21%, 41%)
OKLCH
oklch(0.575 0.059 104.5)
OKLab
oklab(0.575 -0.015 0.057)
CIELAB (D65)
L* 50.93, a* -5.64, b* 22.87
XYZ (D65)
X 17.21, Y 19.21, Z 10.78
CMYK (naive)
cmyk(0%, 2%, 35%, 51%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #7E7B52 accessible?

Black text on it reaches 4.84:1, passing AA. White text manages only 4.33:1, enough for large text only.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    4.84:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +34
  • White text on it

    4.33:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc −75
  • As text on black

    4.84:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc −31
  • As text on white

    4.33:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc +70

Nearest versions that pass 4.5:1

  • For text on white

    #7B784F 4.52:1

    Darkening its OKLCH lightness from 0.58 to 0.57 reaches 4.52:1 on white, keeping the hue.

  • For text on black

    #7E7B52 4.84:1

    It already reaches 4.84:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #7E7B52 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #7E7B52

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #7E7B52 sits at step 600.

  1. 50#FAF7D4
    White
    1.08
    Black
    19.31
  2. 100#F0EEC9
    White
    1.18
    Black
    17.77
  3. 200#DCDAB3
    White
    1.42
    Black
    14.72
  4. 300#C3C097
    White
    1.85
    Black
    11.30
  5. 400#A7A47A
    White
    2.55
    Black
    8.23
  6. 500#8B885F
    White
    3.63
    Black
    5.78
  7. 600This color#7E7B52
    White
    4.33
    Black
    4.84
  8. 700#5D5A33
    White
    7.05
    Black
    2.97
  9. 800#44411E
    White
    10.39
    Black
    2.02
  10. 900#2D2A09
    White
    14.51
    Black
    1.44
  11. 950#191700
    White
    18.04
    Black
    1.16

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #7E7B52 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.122; #7E7B52 uses 48% of it. Display P3, which many recent phones and laptops show, reaches 0.141 there: 16% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.059
sRGB edge
0.122
Display P3 edge
0.141
Rec. 2020 edge
0.145
Dominant wavelength
572 nm
Excitation purity
36%
Chromaticity
x 0.3646, y 0.4070
  • This color#7E7B52
  • Most vivid in sRGB#857C00
  • Most vivid in Display P3oklch(0.575 0.141 104.5)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #7e7b52;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.5214 0.4862 0); }
}

Mixing

Mixing #7E7B52

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#BFBDA9
  • OKLab50%#BCBBA6
  • OKLCH50%#BCBBA6

Black #000000

  • sRGB50%#3F3E29
  • OKLab50%#2D2C1A
  • OKLCH50%#2D2C1A

Its complement #75749B

  • sRGB50%#7A7877
  • OKLab50%#797879
  • OKLCH50%#996B6D
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #7e7b52, white);
color: color-mix(in oklch, #7e7b52 50%, white);

In use

#7E7B52 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:14.84:1 Passes
  • Link and body-size textText, 4.5:14.33:1 Fails
  • Large headingLarge text, 3:14.33:1 Passes
  • Icons, borders and focus ringsNon-text, 3:14.33:1 Passes

For text on this page, the nearest shade that passes is #7B784F 4.52:1

Dark page

  • Button labelText, 4.5:14.84:1 Passes
  • Link and body-size textText, 4.5:14.31:1 Fails
  • Large headingLarge text, 3:14.31:1 Passes
  • Icons, borders and focus ringsNon-text, 3:14.31:1 Passes

For text on this page, the nearest shade that passes is #817E55 4.50:1

Color vision

How #7E7B52 looks with color blindness

Tritanopia changes it most, ΔE2000 16.7; deuteranopia changes it least, 2.7.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #82784F ΔE2000 3.0

    Close match

    Reads as muted amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #837A54 ΔE2000 2.7

    Close match

    Reads as muted amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #847670 ΔE2000 16.7

    Distinct

    Reads as gray

  • Achromatopsia

    No cone color vision; lightness only

    #797979 ΔE2000 15.7

    Distinct

    Reads as gray

Pairing check

Checked against its complement, #75749B. Their lightness contrast is only 1.02:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#7E7B52 · #75749B35.6Stays distinct
Protanopia#82784F · #6A799D32.7Stays distinct
Deuteranopia#837A54 · #69779A31.6Stays distinct
Tritanopia#847670 · #6C7B8115.2Stays distinct
Achromatopsia#797979 · #7878780.4Easily confused

Harmony

Color harmonies for #7E7B52

Its complement is #75749B, a muted violet, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#7E7B52
  • Complement#75749B

Complementary

Open in Harmony Studio
  • −30°#8E7452
  • Base#7E7B52
  • +30°#6A815E
  • Base#7E7B52
  • +120°#518193
  • +240°#926B81
  • Base#7E7B52
  • +150°#617B9B
  • +210°#866F91

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-7002: #7e7b52;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-7002': '#7e7b52',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-7002: oklch(0.575 0.059 104.5);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-7002": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.4941, 0.4824, 0.3216],
        "hex": "#7e7b52"
      },
      "$description": "RAL 7002 Olive grey (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral7002 = Color(.sRGB, red: 0.494, green: 0.482, blue: 0.322, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral7002 = Color(0xFF7E7B52)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #7E7B52 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.