#7F8A23#7F8A23

#7F8A23 is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.5% C 0.124 H 115.6°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#7F8A23
RGBrgb(127, 138, 35)
HSLhsl(66, 60%, 34%)
HSVhsv(66, 75%, 54%)
CMYKcmyk(8%, 0%, 74.6%, 45.9%)
CIE-LABlab(54.88, -17.60, 50.41)
CIE-LCHlch(54.88, 53.39, 109.25°)
OKLaboklab(60.5% -0.0534 0.1116)
OKLCHoklch(60.5% 0.124 115.6)
XYZxyz(18.1447, 22.8106, 5.0368)
Luminance0.2281 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A23 #2E238A
analogous
#8A6223 #7F8A23 #4C8A23
triadic
#7F8A23 #237F8A #8A237F
tetradic
#7F8A23 #238A62 #2E238A #8A234C
square
#7F8A23 #238A62 #2E238A #8A234C
split-complementary
#7F8A23 #234C8A #62238A
monochromatic
#25280A #525917 #7F8A23 #ACBB2F #C6D454

Accessibility & contrast

On white

3.78
#7F8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#7F8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A23
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A23#FFFFFF#000000##000000
##7F8A231.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830F
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#878276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a23;
/* rgb */ color: rgb(127, 138, 35);
/* oklch */ color: oklch(60.5% 0.124 115.6);
Tailwind
colors: {
  custom: {
    50: '#a7ac66',
    500: '#7f8a23',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a23;
$custom-light: #a7ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a23",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 66.408,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60497,
    "c": 0.12372,
    "h": 115.6
  },
  "luminance": 0.2281
}

Semantic roles & 50–950 ramp

primary
#7F8A23
secondary
#5C51B7
accent
#45E356
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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