#7F7D2A#7F7D2A

#7F7D2A is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.5% C 0.104 H 107.9°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7F7D2A
RGBrgb(127, 125, 42)
HSLhsl(59, 50%, 33%)
HSVhsv(59, 67%, 50%)
CMYKcmyk(0%, 1.6%, 66.9%, 50.2%)
CIE-LABlab(51.09, -10.23, 43.79)
CIE-LCHlch(51.09, 44.97, 103.15°)
OKLaboklab(57.48% -0.032 0.0989)
OKLCHoklch(57.48% 0.104 107.9)
XYZxyz(16.5045, 19.3469, 5.0550)
Luminance0.1935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7D2A #2A2C7F
analogous
#7F522A #7F7D2A #567F2A
triadic
#7F7D2A #2A7F7D #7D2A7F
tetradic
#7F7D2A #2A7F52 #2A2C7F #7F2A56
square
#7F7D2A #2A7F52 #2A2C7F #7F2A56
split-complementary
#7F7D2A #2A567F #522A7F
monochromatic
#23220C #51501B #7F7D2A #ADAA39 #C9C65B

Accessibility & contrast

On white

4.31
#7F7D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#7F7D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7D2A
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7D2A#FFFFFF#000000##000000
##7F7D2A1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#87781F
Deuteranopia (green-blind)
#897B2F
Tritanopia (blue-blind)
#88756C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f7d2a;
/* rgb */ color: rgb(127, 125, 42);
/* oklch */ color: oklch(57.5% 0.104 107.9);
Tailwind
colors: {
  custom: {
    50: '#a7a268',
    500: '#7f7d2a',
    950: '#000000',
  },
}
SCSS
$custom: #7f7d2a;
$custom-light: #a7a268;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7d2a",
  "rgb": {
    "r": 127,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 58.588,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57484,
    "c": 0.10396,
    "h": 107.9
  },
  "luminance": 0.19346
}

Semantic roles & 50–950 ramp

primary
#7F7D2A
secondary
#5759AE
accent
#51DA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F06
muted
#7F7E7A

Preview Lab

Preview with #7F7D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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