#7D8F12#7D8F12

#7D8F12 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.4% C 0.139 H 118.4°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7D8F12
RGBrgb(125, 143, 18)
HSLhsl(69, 78%, 32%)
HSVhsv(69, 87%, 56%)
CMYKcmyk(12.6%, 0%, 87.4%, 43.9%)
CIE-LABlab(56.14, -21.74, 56.56)
CIE-LCHlch(56.14, 60.59, 111.03°)
OKLaboklab(61.45% -0.0659 0.1218)
OKLCHoklch(61.45% 0.139 118.4)
XYZxyz(18.3896, 24.0487, 4.2453)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8F12 #24128F
analogous
#8F6312 #7D8F12 #3F8F12
triadic
#7D8F12 #127D8F #8F127D
tetradic
#7D8F12 #128F63 #24128F #8F123F
square
#7D8F12 #128F63 #24128F #8F123F
split-complementary
#7D8F12 #123F8F #63128F
monochromatic
#1E2204 #4D590B #7D8F12 #ADC519 #CCE636

Accessibility & contrast

On white

3.61
#7D8F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#7D8F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8F12
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8F12#FFFFFF#000000##000000
##7D8F121.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#978721
Tritanopia (blue-blind)
#858779
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7d8f12;
/* rgb */ color: rgb(125, 143, 18);
/* oklch */ color: oklch(61.4% 0.139 118.4);
Tailwind
colors: {
  custom: {
    50: '#a6af60',
    500: '#7d8f12',
    950: '#000000',
  },
}
SCSS
$custom: #7d8f12;
$custom-light: #a6af60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8f12",
  "rgb": {
    "r": 125,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 68.64,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61446,
    "c": 0.1385,
    "h": 118.4
  },
  "luminance": 0.24049
}

Semantic roles & 50–950 ramp

primary
#7D8F12
secondary
#4D3AC3
accent
#34F44F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8F12

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

Preview Lab → · Contrast checker → · Palette generator →

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