#7D8E1B#7D8E1B

#7D8E1B is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.2% C 0.134 H 118.2°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7D8E1B
RGBrgb(125, 142, 27)
HSLhsl(69, 68%, 33%)
HSVhsv(69, 81%, 56%)
CMYKcmyk(12%, 0%, 81%, 44.3%)
CIE-LABlab(55.87, -20.92, 53.95)
CIE-LCHlch(55.87, 57.86, 111.20°)
OKLaboklab(61.25% -0.0631 0.1177)
OKLCHoklch(61.25% 0.134 118.2)
XYZxyz(18.3287, 23.7853, 4.6622)
Luminance0.2379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8E1B #2C1B8E
analogous
#8E651B #7D8E1B #438E1B
triadic
#7D8E1B #1B7D8E #8E1B7D
tetradic
#7D8E1B #1B8E65 #2C1B8E #8E1B43
square
#7D8E1B #1B8E65 #2C1B8E #8E1B43
split-complementary
#7D8E1B #1B438E #651B8E
monochromatic
#222707 #505B11 #7D8E1B #AAC125 #C6DC47

Accessibility & contrast

On white

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

On black

5.76
#7D8E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8E1B
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8E1B#FFFFFF#000000##000000
##7D8E1B1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8e1b;
/* rgb */ color: rgb(125, 142, 27);
/* oklch */ color: oklch(61.2% 0.134 118.2);
Tailwind
colors: {
  custom: {
    50: '#a6af63',
    500: '#7d8e1b',
    950: '#000000',
  },
}
SCSS
$custom: #7d8e1b;
$custom-light: #a6af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8e1b",
  "rgb": {
    "r": 125,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 68.87,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61245,
    "c": 0.13358,
    "h": 118.2
  },
  "luminance": 0.23785
}

Semantic roles & 50–950 ramp

primary
#7D8E1B
secondary
#5947BE
accent
#3DEB57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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