#7F8D23#7F8D23

#7F8D23 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#7F8D23
RGBrgb(127, 141, 35)
HSLhsl(68, 60%, 35%)
HSVhsv(68, 75%, 55%)
CMYKcmyk(9.9%, 0%, 75.2%, 44.7%)
CIE-LABlab(55.77, -19.16, 51.26)
CIE-LCHlch(55.77, 54.72, 110.50°)
OKLaboklab(61.21% -0.0577 0.1134)
OKLCHoklch(61.21% 0.127 117)
XYZxyz(18.5811, 23.6834, 5.1823)
Luminance0.2368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D23 #31238D
analogous
#8D6623 #7F8D23 #4A8D23
triadic
#7F8D23 #237F8D #8D237F
tetradic
#7F8D23 #238D66 #31238D #8D234A
square
#7F8D23 #238D66 #31238D #8D234A
split-complementary
#7F8D23 #234A8D #66238D
monochromatic
#272B0B #535C17 #7F8D23 #ABBE2F #C4D555

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8D23#FFFFFF#000000##000000
##7F8D231.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)
#97850D
Deuteranopia (green-blind)
#96862C
Tritanopia (blue-blind)
#878579
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8d23;
/* rgb */ color: rgb(127, 141, 35);
/* oklch */ color: oklch(61.2% 0.127 117.0);
Tailwind
colors: {
  custom: {
    50: '#a7ae66',
    500: '#7f8d23',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d23;
$custom-light: #a7ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d23",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 67.925,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61214,
    "c": 0.12724,
    "h": 117
  },
  "luminance": 0.23683
}

Semantic roles & 50–950 ramp

primary
#7F8D23
secondary
#6053B9
accent
#44E359
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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