#7F7A16#7F7A16

#7F7A16 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.114 H 106.5°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7F7A16
RGBrgb(127, 122, 22)
HSLhsl(57, 70%, 29%)
HSVhsv(57, 83%, 50%)
CMYKcmyk(0%, 3.9%, 82.7%, 50.2%)
CIE-LABlab(50.08, -9.59, 50.39)
CIE-LCHlch(50.08, 51.30, 100.78°)
OKLaboklab(56.64% -0.0322 0.1091)
OKLCHoklch(56.64% 0.114 106.5)
XYZxyz(15.8574, 18.4896, 3.4925)
Luminance0.1849 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7A16 #161B7F
analogous
#7F4616 #7F7A16 #507F16
triadic
#7F7A16 #167F7A #7A167F
tetradic
#7F7A16 #167F46 #161B7F #7F1650
square
#7F7A16 #167F46 #161B7F #7F1650
split-complementary
#7F7A16 #16507F #46167F
monochromatic
#1A1905 #4B480D #7F7A16 #B3AC1F #DCD434

Accessibility & contrast

On white

4.47
#7F7A16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7F7A16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7A16
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7A16#FFFFFF#000000##000000
##7F7A161.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#87791F
Tritanopia (blue-blind)
#897168
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f7a16;
/* rgb */ color: rgb(127, 122, 22);
/* oklch */ color: oklch(56.6% 0.114 106.5);
Tailwind
colors: {
  custom: {
    50: '#a8a05e',
    500: '#7f7a16',
    950: '#000000',
  },
}
SCSS
$custom: #7f7a16;
$custom-light: #a8a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7a16",
  "rgb": {
    "r": 127,
    "g": 122,
    "b": 22
  },
  "hsl": {
    "h": 57.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56641,
    "c": 0.11376,
    "h": 106.5
  },
  "luminance": 0.18489
}

Semantic roles & 50–950 ramp

primary
#7F7A16
secondary
#3D43B4
accent
#43ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7A16

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

Preview Lab → · Contrast checker → · Palette generator →

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