#7F7D1E#7F7D1E

#7F7D1E is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.4% C 0.112 H 108.2°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7F7D1E
RGBrgb(127, 125, 30)
HSLhsl(59, 62%, 31%)
HSVhsv(59, 76%, 50%)
CMYKcmyk(0%, 1.6%, 76.4%, 50.2%)
CIE-LABlab(51.01, -10.91, 48.55)
CIE-LCHlch(51.01, 49.76, 102.66°)
OKLaboklab(57.39% -0.0352 0.1068)
OKLCHoklch(57.39% 0.112 108.2)
XYZxyz(16.3210, 19.2735, 4.0885)
Luminance0.1927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7D1E #1E207F
analogous
#7F4C1E #7F7D1E #507F1E
triadic
#7F7D1E #1E7F7D #7D1E7F
tetradic
#7F7D1E #1E7F4C #1E207F #7F1E50
square
#7F7D1E #1E7F4C #1E207F #7F1E50
split-complementary
#7F7D1E #1E507F #4C1E7F
monochromatic
#1C1C07 #4D4C12 #7F7D1E #B1AE2A #D3D044

Accessibility & contrast

On white

4.33
#7F7D1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#7F7D1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7D1E
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7D1E#FFFFFF#000000##000000
##7F7D1E1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780A
Deuteranopia (green-blind)
#897B25
Tritanopia (blue-blind)
#89746B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f7d1e;
/* rgb */ color: rgb(127, 125, 30);
/* oklch */ color: oklch(57.4% 0.112 108.2);
Tailwind
colors: {
  custom: {
    50: '#a7a262',
    500: '#7f7d1e',
    950: '#000000',
  },
}
SCSS
$custom: #7f7d1e;
$custom-light: #a7a262;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7d1e",
  "rgb": {
    "r": 127,
    "g": 125,
    "b": 30
  },
  "hsl": {
    "h": 58.763,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.57389,
    "c": 0.11242,
    "h": 108.2
  },
  "luminance": 0.19273
}

Semantic roles & 50–950 ramp

primary
#7F7D1E
secondary
#4749B2
accent
#46E543
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #7F7D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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