#8F8F28#8F8F28

#8F8F28 is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.1% C 0.122 H 109.4°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#8F8F28
RGBrgb(143, 143, 40)
HSLhsl(60, 56%, 36%)
HSVhsv(60, 72%, 56%)
CMYKcmyk(0%, 0%, 72%, 43.9%)
CIE-LABlab(57.69, -12.83, 51.71)
CIE-LCHlch(57.69, 53.28, 103.93°)
OKLaboklab(63.09% -0.0405 0.1148)
OKLCHoklch(63.09% 0.122 109.4)
XYZxyz(21.5339, 25.6384, 5.8214)
Luminance0.2564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8F28 #28288F
analogous
#8F5B28 #8F8F28 #5B8F28
triadic
#8F8F28 #288F8F #8F288F
tetradic
#8F8F28 #288F5B #28288F #8F285B
square
#8F8F28 #288F5B #28288F #8F285B
split-complementary
#8F8F28 #285B8F #5B288F
monochromatic
#2F2F0D #5F5F1B #8F8F28 #BFBF35 #D2D25F

Accessibility & contrast

On white

3.43
#8F8F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#8F8F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8F28
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8F28#FFFFFF#000000##000000
##8F8F281.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8916
Deuteranopia (green-blind)
#9C8C30
Tritanopia (blue-blind)
#99867B
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8f8f28;
/* rgb */ color: rgb(143, 143, 40);
/* oklch */ color: oklch(63.1% 0.122 109.4);
Tailwind
colors: {
  custom: {
    50: '#b3af69',
    500: '#8f8f28',
    950: '#000000',
  },
}
SCSS
$custom: #8f8f28;
$custom-light: #b3af69;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8f28",
  "rgb": {
    "r": 143,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63087,
    "c": 0.12168,
    "h": 109.4
  },
  "luminance": 0.25638
}

Semantic roles & 50–950 ramp

primary
#8F8F28
secondary
#5B5BB8
accent
#48E048
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8F8F28

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

Preview Lab → · Contrast checker → · Palette generator →

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