#7E7C18#7E7C18

#7E7C18 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.115 H 108.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7E7C18
RGBrgb(126, 124, 24)
HSLhsl(59, 68%, 29%)
HSVhsv(59, 81%, 49%)
CMYKcmyk(0%, 1.6%, 81%, 50.6%)
CIE-LABlab(50.59, -11.08, 50.18)
CIE-LCHlch(50.59, 51.39, 102.45°)
OKLaboklab(57.03% -0.0362 0.1091)
OKLCHoklch(57.03% 0.115 108.3)
XYZxyz(15.9773, 18.9174, 3.6738)
Luminance0.1892 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7C18 #181A7E
analogous
#7E4918 #7E7C18 #4D7E18
triadic
#7E7C18 #187E7C #7C187E
tetradic
#7E7C18 #187E49 #181A7E #7E184D
square
#7E7C18 #187E49 #181A7E #7E184D
split-complementary
#7E7C18 #184D7E #49187E
monochromatic
#1A1905 #4B490E #7E7C18 #B1AF22 #D9D637

Accessibility & contrast

On white

4.39
#7E7C18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#7E7C18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7C18
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7C18#FFFFFF#000000##000000
##7E7C181.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#887A21
Tritanopia (blue-blind)
#88736A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e7c18;
/* rgb */ color: rgb(126, 124, 24);
/* oklch */ color: oklch(57.0% 0.115 108.3);
Tailwind
colors: {
  custom: {
    50: '#a7a15f',
    500: '#7e7c18',
    950: '#000000',
  },
}
SCSS
$custom: #7e7c18;
$custom-light: #a7a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7c18",
  "rgb": {
    "r": 126,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 58.824,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57026,
    "c": 0.11493,
    "h": 108.3
  },
  "luminance": 0.18917
}

Semantic roles & 50–950 ramp

primary
#7E7C18
secondary
#3F42B2
accent
#40EB3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7C18

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#7E7C18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva