#7F7D1A#7F7D1A

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

Color values

HEX#7F7D1A
RGBrgb(127, 125, 26)
HSLhsl(59, 66%, 30%)
HSVhsv(59, 80%, 50%)
CMYKcmyk(0%, 1.6%, 79.5%, 50.2%)
CIE-LABlab(50.98, -11.08, 49.92)
CIE-LCHlch(50.98, 51.14, 102.52°)
OKLaboklab(57.37% -0.036 0.1089)
OKLCHoklch(57.37% 0.115 108.3)
XYZxyz(16.2731, 19.2544, 3.8363)
Luminance0.1925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7D1A #1A1C7F
analogous
#7F4B1A #7F7D1A #4E7F1A
triadic
#7F7D1A #1A7F7D #7D1A7F
tetradic
#7F7D1A #1A7F4B #1A1C7F #7F1A4E
square
#7F7D1A #1A7F4B #1A1C7F #7F1A4E
split-complementary
#7F7D1A #1A4E7F #4B1A7F
monochromatic
#191905 #4C4B10 #7F7D1A #B2AF24 #D7D43C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7D1A#FFFFFF#000000##000000
##7F7D1A1.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)
#887801
Deuteranopia (green-blind)
#897B22
Tritanopia (blue-blind)
#89746B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f7d1a;
/* rgb */ color: rgb(127, 125, 26);
/* oklch */ color: oklch(57.4% 0.115 108.3);
Tailwind
colors: {
  custom: {
    50: '#a7a260',
    500: '#7f7d1a',
    950: '#000000',
  },
}
SCSS
$custom: #7f7d1a;
$custom-light: #a7a260;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7d1a",
  "rgb": {
    "r": 127,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 58.812,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.57365,
    "c": 0.1147,
    "h": 108.3
  },
  "luminance": 0.19254
}

Semantic roles & 50–950 ramp

primary
#7F7D1A
secondary
#4244B3
accent
#42E93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7F7D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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