#8F8A23#8F8A23

#8F8A23 is a mid, moderate yellow. Relative luminance 0.241; OKLCH L 61.9% C 0.120 H 106.6°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8F8A23
RGBrgb(143, 138, 35)
HSLhsl(57, 61%, 35%)
HSVhsv(57, 76%, 56%)
CMYKcmyk(0%, 3.5%, 75.5%, 43.9%)
CIE-LABlab(56.23, -10.40, 52.16)
CIE-LCHlch(56.23, 53.19, 101.27°)
OKLaboklab(61.91% -0.0342 0.1148)
OKLCHoklch(61.91% 0.12 106.6)
XYZxyz(20.7204, 24.1387, 5.1576)
Luminance0.2414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A23 #23288F
analogous
#8F5423 #8F8A23 #5E8F23
triadic
#8F8A23 #238F8A #8A238F
tetradic
#8F8A23 #238F54 #23288F #8F235E
square
#8F8A23 #238F54 #23288F #8F235E
split-complementary
#8F8A23 #235E8F #54238F
monochromatic
#2D2B0B #5E5B17 #8F8A23 #C0B92F #D6D057

Accessibility & contrast

On white

3.60
#8F8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#8F8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8A23
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8A23#FFFFFF#000000##000000
##8F8A231.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#96850E
Deuteranopia (green-blind)
#98892B
Tritanopia (blue-blind)
#9A8076
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a23;
/* rgb */ color: rgb(143, 138, 35);
/* oklch */ color: oklch(61.9% 0.120 106.6);
Tailwind
colors: {
  custom: {
    50: '#b3ab66',
    500: '#8f8a23',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a23;
$custom-light: #b3ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a23",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 57.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.61908,
    "c": 0.11974,
    "h": 106.6
  },
  "luminance": 0.24138
}

Semantic roles & 50–950 ramp

primary
#8F8A23
secondary
#5459BA
accent
#4BE444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8F8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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