#7D8B17#7D8B17

#7D8B17 is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.5% C 0.132 H 116.8°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7D8B17
RGBrgb(125, 139, 23)
HSLhsl(67, 72%, 32%)
HSVhsv(67, 83%, 55%)
CMYKcmyk(10.1%, 0%, 83.5%, 45.5%)
CIE-LABlab(54.96, -19.54, 54.29)
CIE-LCHlch(54.96, 57.70, 109.79°)
OKLaboklab(60.5% -0.0596 0.1178)
OKLCHoklch(60.5% 0.132 116.8)
XYZxyz(17.8452, 22.8873, 4.2881)
Luminance0.2289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8B17 #25178B
analogous
#8B5F17 #7D8B17 #438B17
triadic
#7D8B17 #177D8B #8B177D
tetradic
#7D8B17 #178B5F #25178B #8B1743
square
#7D8B17 #178B5F #25178B #8B1743
split-complementary
#7D8B17 #17438B #5F178B
monochromatic
#1F2206 #4E560E #7D8B17 #ACC020 #CBDF3D

Accessibility & contrast

On white

3.77
#7D8B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#7D8B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8B17
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8B17#FFFFFF#000000##000000
##7D8B171.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948423
Tritanopia (blue-blind)
#858376
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7d8b17;
/* rgb */ color: rgb(125, 139, 23);
/* oklch */ color: oklch(60.5% 0.132 116.8);
Tailwind
colors: {
  custom: {
    50: '#a6ac61',
    500: '#7d8b17',
    950: '#000000',
  },
}
SCSS
$custom: #7d8b17;
$custom-light: #a6ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8b17",
  "rgb": {
    "r": 125,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 67.241,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60502,
    "c": 0.13197,
    "h": 116.8
  },
  "luminance": 0.22887
}

Semantic roles & 50–950 ramp

primary
#7D8B17
secondary
#4F3FBF
accent
#39EE4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8B17

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

Preview Lab → · Contrast checker → · Palette generator →

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