#7F7912#7F7912

#7F7912 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.4% C 0.115 H 105.9°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7F7912
RGBrgb(127, 121, 18)
HSLhsl(57, 75%, 28%)
HSVhsv(57, 86%, 50%)
CMYKcmyk(0%, 4.7%, 85.8%, 50.2%)
CIE-LABlab(49.78, -9.17, 51.28)
CIE-LCHlch(49.78, 52.09, 100.14°)
OKLaboklab(56.39% -0.0314 0.1102)
OKLCHoklch(56.39% 0.115 105.9)
XYZxyz(15.6997, 18.2311, 3.2641)
Luminance0.1823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7912 #12187F
analogous
#7F4212 #7F7912 #4E7F12
triadic
#7F7912 #127F79 #79127F
tetradic
#7F7912 #127F42 #12187F #7F124E
square
#7F7912 #127F42 #12187F #7F124E
split-complementary
#7F7912 #124E7F #42127F
monochromatic
#1B1A04 #49460A #7F7912 #B5AC1A #E1D72B

Accessibility & contrast

On white

4.52
#7F7912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7F7912 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7912
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7912#FFFFFF#000000##000000
##7F79121.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#87781C
Tritanopia (blue-blind)
#897067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f7912;
/* rgb */ color: rgb(127, 121, 18);
/* oklch */ color: oklch(56.4% 0.115 105.9);
Tailwind
colors: {
  custom: {
    50: '#a89f5c',
    500: '#7f7912',
    950: '#000000',
  },
}
SCSS
$custom: #7f7912;
$custom-light: #a89f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7912",
  "rgb": {
    "r": 127,
    "g": 121,
    "b": 18
  },
  "hsl": {
    "h": 56.697,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.56389,
    "c": 0.1146,
    "h": 105.9
  },
  "luminance": 0.1823
}

Semantic roles & 50–950 ramp

primary
#7F7912
secondary
#383FB5
accent
#40F236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7912

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

Preview Lab → · Contrast checker → · Palette generator →

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