#7F8D24#7F8D24

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

Color values

HEX#7F8D24
RGBrgb(127, 141, 36)
HSLhsl(68, 59%, 35%)
HSVhsv(68, 74%, 55%)
CMYKcmyk(9.9%, 0%, 74.5%, 44.7%)
CIE-LABlab(55.78, -19.11, 50.90)
CIE-LCHlch(55.78, 54.37, 110.58°)
OKLaboklab(61.22% -0.0574 0.1129)
OKLCHoklch(61.22% 0.127 117)
XYZxyz(18.5962, 23.6894, 5.2616)
Luminance0.2369 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D24 #32248D
analogous
#8D6724 #7F8D24 #4B8D24
triadic
#7F8D24 #247F8D #8D247F
tetradic
#7F8D24 #248D67 #32248D #8D244B
square
#7F8D24 #248D67 #32248D #8D244B
split-complementary
#7F8D24 #244B8D #67248D
monochromatic
#272B0B #535C18 #7F8D24 #ABBE30 #C4D457

Accessibility & contrast

On white

3.66
#7F8D24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#7F8D24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D24
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D24#FFFFFF#000000##000000
##7F8D241.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850F
Deuteranopia (green-blind)
#96862D
Tritanopia (blue-blind)
#878579
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8d24;
/* rgb */ color: rgb(127, 141, 36);
/* oklch */ color: oklch(61.2% 0.127 117.0);
Tailwind
colors: {
  custom: {
    50: '#a7ae67',
    500: '#7f8d24',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d24;
$custom-light: #a7ae67;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d24",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 36
  },
  "hsl": {
    "h": 68,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61221,
    "c": 0.12663,
    "h": 117
  },
  "luminance": 0.23689
}

Semantic roles & 50–950 ramp

primary
#7F8D24
secondary
#6254B8
accent
#45E35A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8D24

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

Preview Lab → · Contrast checker → · Palette generator →

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