#7D8E12#7D8E12

#7D8E12 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.137 H 118.0°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#7D8E12
RGBrgb(125, 142, 18)
HSLhsl(68, 78%, 31%)
HSVhsv(68, 87%, 56%)
CMYKcmyk(12%, 0%, 87.3%, 44.3%)
CIE-LABlab(55.84, -21.24, 56.30)
CIE-LCHlch(55.84, 60.18, 110.67°)
OKLaboklab(61.21% -0.0646 0.1213)
OKLCHoklch(61.21% 0.137 118)
XYZxyz(18.2401, 23.7498, 4.1954)
Luminance0.2375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8E12 #23128E
analogous
#8E6112 #7D8E12 #3F8E12
triadic
#7D8E12 #127D8E #8E127D
tetradic
#7D8E12 #128E61 #23128E #8E123F
square
#7D8E12 #128E61 #23128E #8E123F
split-complementary
#7D8E12 #123F8E #61128E
monochromatic
#1D2104 #4D580B #7D8E12 #ADC419 #CDE535

Accessibility & contrast

On white

3.65
#7D8E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#7D8E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8E12
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8E12#FFFFFF#000000##000000
##7D8E121.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968621
Tritanopia (blue-blind)
#858679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7d8e12;
/* rgb */ color: rgb(125, 142, 18);
/* oklch */ color: oklch(61.2% 0.137 118.0);
Tailwind
colors: {
  custom: {
    50: '#a6af5f',
    500: '#7d8e12',
    950: '#000000',
  },
}
SCSS
$custom: #7d8e12;
$custom-light: #a6af5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8e12",
  "rgb": {
    "r": 125,
    "g": 142,
    "b": 18
  },
  "hsl": {
    "h": 68.226,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.61205,
    "c": 0.13737,
    "h": 118
  },
  "luminance": 0.2375
}

Semantic roles & 50–950 ramp

primary
#7D8E12
secondary
#4C3AC2
accent
#34F44E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8E12

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

Preview Lab → · Contrast checker → · Palette generator →

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