#7D7F12#7D7F12

#7D7F12 is a mid, vivid yellow. Relative luminance 0.196; OKLCH L 57.6% C 0.121 H 110.8°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7D7F12
RGBrgb(125, 127, 18)
HSLhsl(61, 75%, 28%)
HSVhsv(61, 86%, 50%)
CMYKcmyk(1.6%, 0%, 85.8%, 50.2%)
CIE-LABlab(51.36, -13.38, 52.54)
CIE-LCHlch(51.36, 54.22, 104.29°)
OKLaboklab(57.61% -0.043 0.1131)
OKLCHoklch(57.61% 0.121 110.8)
XYZxyz(16.1566, 19.5829, 3.5009)
Luminance0.1958 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7F12 #14127F
analogous
#7F4A12 #7D7F12 #467F12
triadic
#7D7F12 #127D7F #7F127D
tetradic
#7D7F12 #127F4A #14127F #7F1246
square
#7D7F12 #127F4A #14127F #7F1246
split-complementary
#7D7F12 #12467F #4A127F
monochromatic
#1A1B04 #48490A #7D7F12 #B2B51A #DEE12B

Accessibility & contrast

On white

4.27
#7D7F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#7D7F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7F12
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7F12#FFFFFF#000000##000000
##7D7F121.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8B7C1D
Tritanopia (blue-blind)
#86766C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7d7f12;
/* rgb */ color: rgb(125, 127, 18);
/* oklch */ color: oklch(57.6% 0.121 110.8);
Tailwind
colors: {
  custom: {
    50: '#a6a35d',
    500: '#7d7f12',
    950: '#000000',
  },
}
SCSS
$custom: #7d7f12;
$custom-light: #a6a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7f12",
  "rgb": {
    "r": 125,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 61.101,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.57613,
    "c": 0.12097,
    "h": 110.8
  },
  "luminance": 0.19582
}

Semantic roles & 50–950 ramp

primary
#7D7F12
secondary
#3A38B5
accent
#36F239
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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