#8F8A28#8F8A28

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

Color values

HEX#8F8A28
RGBrgb(143, 138, 40)
HSLhsl(57, 56%, 36%)
HSVhsv(57, 72%, 56%)
CMYKcmyk(0%, 3.5%, 72%, 43.9%)
CIE-LABlab(56.26, -10.15, 50.31)
CIE-LCHlch(56.26, 51.32, 101.41°)
OKLaboklab(61.94% -0.033 0.1118)
OKLCHoklch(61.94% 0.117 106.4)
XYZxyz(20.8000, 24.1705, 5.5768)
Luminance0.2417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A28 #282D8F
analogous
#8F5628 #8F8A28 #608F28
triadic
#8F8A28 #288F8A #8A288F
tetradic
#8F8A28 #288F56 #282D8F #8F2860
square
#8F8A28 #288F56 #282D8F #8F2860
split-complementary
#8F8A28 #28608F #56288F
monochromatic
#2F2E0D #5F5C1B #8F8A28 #BFB835 #D2CD5F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F8A28#FFFFFF#000000##000000
##8F8A281.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)
#968518
Deuteranopia (green-blind)
#98892F
Tritanopia (blue-blind)
#9A8177
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a28;
/* rgb */ color: rgb(143, 138, 40);
/* oklch */ color: oklch(61.9% 0.117 106.4);
Tailwind
colors: {
  custom: {
    50: '#b3ab69',
    500: '#8f8a28',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a28;
$custom-light: #b3ab69;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a28",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 57.087,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61943,
    "c": 0.11655,
    "h": 106.4
  },
  "luminance": 0.2417
}

Semantic roles & 50–950 ramp

primary
#8F8A28
secondary
#5B60B8
accent
#50E048
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8F8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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