#7F7D12#7F7D12

#7F7D12 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.3% C 0.118 H 108.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7F7D12
RGBrgb(127, 125, 18)
HSLhsl(59, 75%, 28%)
HSVhsv(59, 86%, 50%)
CMYKcmyk(0%, 1.6%, 85.8%, 50.2%)
CIE-LABlab(50.95, -11.37, 52.27)
CIE-LCHlch(50.95, 53.49, 102.27°)
OKLaboklab(57.33% -0.0375 0.1124)
OKLCHoklch(57.33% 0.118 108.4)
XYZxyz(16.1959, 19.2235, 3.4295)
Luminance0.1922 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7D12 #12147F
analogous
#7F4612 #7F7D12 #4A7F12
triadic
#7F7D12 #127F7D #7D127F
tetradic
#7F7D12 #127F46 #12147F #7F124A
square
#7F7D12 #127F46 #12147F #7F124A
split-complementary
#7F7D12 #124A7F #46127F
monochromatic
#1B1A04 #49480A #7F7D12 #B5B21A #E1DE2B

Accessibility & contrast

On white

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

On black

4.84
#7F7D12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7D12
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7D12#FFFFFF#000000##000000
##7F7D121.004.334.844.84
#FFFFFF4.331.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#8A7B1D
Tritanopia (blue-blind)
#89746A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f7d12;
/* rgb */ color: rgb(127, 125, 18);
/* oklch */ color: oklch(57.3% 0.118 108.4);
Tailwind
colors: {
  custom: {
    50: '#a8a25d',
    500: '#7f7d12',
    950: '#000000',
  },
}
SCSS
$custom: #7f7d12;
$custom-light: #a8a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7d12",
  "rgb": {
    "r": 127,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 58.899,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.57325,
    "c": 0.11846,
    "h": 108.4
  },
  "luminance": 0.19223
}

Semantic roles & 50–950 ramp

primary
#7F7D12
secondary
#383AB5
accent
#39F236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7F7D12

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

Preview Lab → · Contrast checker → · Palette generator →

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