#7E7B18#7E7B18

#7E7B18 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.114 H 107.7°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7E7B18
RGBrgb(126, 123, 24)
HSLhsl(58, 68%, 29%)
HSVhsv(58, 81%, 49%)
CMYKcmyk(0%, 2.4%, 81%, 50.6%)
CIE-LABlab(50.30, -10.53, 49.92)
CIE-LCHlch(50.30, 51.02, 101.91°)
OKLaboklab(56.79% -0.0346 0.1085)
OKLCHoklch(56.79% 0.114 107.7)
XYZxyz(15.8527, 18.6680, 3.6322)
Luminance0.1867 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7B18 #181B7E
analogous
#7E4818 #7E7B18 #4E7E18
triadic
#7E7B18 #187E7B #7B187E
tetradic
#7E7B18 #187E48 #181B7E #7E184E
square
#7E7B18 #187E48 #181B7E #7E184E
split-complementary
#7E7B18 #184E7E #48187E
monochromatic
#1A1905 #4B490E #7E7B18 #B1AD22 #D9D437

Accessibility & contrast

On white

4.44
#7E7B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#7E7B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7B18
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7B18#FFFFFF#000000##000000
##7E7B181.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#887921
Tritanopia (blue-blind)
#887269
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e7b18;
/* rgb */ color: rgb(126, 123, 24);
/* oklch */ color: oklch(56.8% 0.114 107.7);
Tailwind
colors: {
  custom: {
    50: '#a7a05f',
    500: '#7e7b18',
    950: '#000000',
  },
}
SCSS
$custom: #7e7b18;
$custom-light: #a7a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7b18",
  "rgb": {
    "r": 126,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 58.235,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56791,
    "c": 0.11392,
    "h": 107.7
  },
  "luminance": 0.18667
}

Semantic roles & 50–950 ramp

primary
#7E7B18
secondary
#3F43B2
accent
#42EB3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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