#7F7D1B#7F7D1B

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

Color values

HEX#7F7D1B
RGBrgb(127, 125, 27)
HSLhsl(59, 65%, 30%)
HSVhsv(59, 79%, 50%)
CMYKcmyk(0%, 1.6%, 78.7%, 50.2%)
CIE-LABlab(50.99, -11.04, 49.59)
CIE-LCHlch(50.99, 50.81, 102.55°)
OKLaboklab(57.37% -0.0358 0.1084)
OKLCHoklch(57.37% 0.114 108.3)
XYZxyz(16.2845, 19.2589, 3.8962)
Luminance0.1926 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7D1B #1B1D7F
analogous
#7F4B1B #7F7D1B #4F7F1B
triadic
#7F7D1B #1B7F7D #7D1B7F
tetradic
#7F7D1B #1B7F4B #1B1D7F #7F1B4F
square
#7F7D1B #1B7F4B #1B1D7F #7F1B4F
split-complementary
#7F7D1B #1B4F7F #4B1B7F
monochromatic
#1A1A06 #4D4B10 #7F7D1B #B1AF26 #D6D33E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7D1B#FFFFFF#000000##000000
##7F7D1B1.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)
#887803
Deuteranopia (green-blind)
#897B23
Tritanopia (blue-blind)
#89746B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f7d1b;
/* rgb */ color: rgb(127, 125, 27);
/* oklch */ color: oklch(57.4% 0.114 108.3);
Tailwind
colors: {
  custom: {
    50: '#a7a260',
    500: '#7f7d1b',
    950: '#000000',
  },
}
SCSS
$custom: #7f7d1b;
$custom-light: #a7a260;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7d1b",
  "rgb": {
    "r": 127,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 58.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5737,
    "c": 0.11415,
    "h": 108.3
  },
  "luminance": 0.19258
}

Semantic roles & 50–950 ramp

primary
#7F7D1B
secondary
#4345B3
accent
#43E840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7F7D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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