#7F7B16#7F7B16

#7F7B16 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.9% C 0.115 H 107.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7F7B16
RGBrgb(127, 123, 22)
HSLhsl(58, 70%, 29%)
HSVhsv(58, 83%, 50%)
CMYKcmyk(0%, 3.1%, 82.7%, 50.2%)
CIE-LABlab(50.38, -10.14, 50.65)
CIE-LCHlch(50.38, 51.66, 101.32°)
OKLaboklab(56.88% -0.0338 0.1097)
OKLCHoklch(56.88% 0.115 107.1)
XYZxyz(15.9808, 18.7365, 3.5336)
Luminance0.1874 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7B16 #161A7F
analogous
#7F4716 #7F7B16 #4F7F16
triadic
#7F7B16 #167F7B #7B167F
tetradic
#7F7B16 #167F47 #161A7F #7F164F
square
#7F7B16 #167F47 #161A7F #7F164F
split-complementary
#7F7B16 #164F7F #47167F
monochromatic
#1A1905 #4B480D #7F7B16 #B3AE1F #DCD534

Accessibility & contrast

On white

4.42
#7F7B16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#7F7B16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7B16
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7B16#FFFFFF#000000##000000
##7F7B161.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#887A1F
Tritanopia (blue-blind)
#897269
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f7b16;
/* rgb */ color: rgb(127, 123, 22);
/* oklch */ color: oklch(56.9% 0.115 107.1);
Tailwind
colors: {
  custom: {
    50: '#a8a05e',
    500: '#7f7b16',
    950: '#000000',
  },
}
SCSS
$custom: #7f7b16;
$custom-light: #a8a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7b16",
  "rgb": {
    "r": 127,
    "g": 123,
    "b": 22
  },
  "hsl": {
    "h": 57.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56875,
    "c": 0.11473,
    "h": 107.1
  },
  "luminance": 0.18736
}

Semantic roles & 50–950 ramp

primary
#7F7B16
secondary
#3D42B4
accent
#41ED3B
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7B16

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

Preview Lab → · Contrast checker → · Palette generator →

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