#8A8F28#8A8F28

#8A8F28 is a light, vivid yellow. Relative luminance 0.252; OKLCH L 62.6% C 0.123 H 112.2°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8A8F28
RGBrgb(138, 143, 40)
HSLhsl(63, 56%, 36%)
HSVhsv(63, 72%, 56%)
CMYKcmyk(3.5%, 0%, 72%, 43.9%)
CIE-LABlab(57.27, -15.06, 51.16)
CIE-LCHlch(57.27, 53.33, 106.41°)
OKLaboklab(62.65% -0.0464 0.1138)
OKLCHoklch(62.65% 0.123 112.2)
XYZxyz(20.6873, 25.2019, 5.7818)
Luminance0.2520 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F28 #2D288F
analogous
#8F6028 #8A8F28 #568F28
triadic
#8A8F28 #288A8F #8F288A
tetradic
#8A8F28 #288F60 #2D288F #8F2856
square
#8A8F28 #288F60 #2D288F #8F2856
split-complementary
#8A8F28 #28568F #60288F
monochromatic
#2E2F0D #5C5F1B #8A8F28 #B8BF35 #CDD25F

Accessibility & contrast

On white

3.48
#8A8F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#8A8F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F28
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F28#FFFFFF#000000##000000
##8A8F281.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8816
Deuteranopia (green-blind)
#9A8B30
Tritanopia (blue-blind)
#94867B
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8f28;
/* rgb */ color: rgb(138, 143, 40);
/* oklch */ color: oklch(62.6% 0.123 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf69',
    500: '#8a8f28',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f28;
$custom-light: #afaf69;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f28",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 62.913,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.62648,
    "c": 0.12286,
    "h": 112.2
  },
  "luminance": 0.25201
}

Semantic roles & 50–950 ramp

primary
#8A8F28
secondary
#605BB8
accent
#48E050
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8F28

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

Preview Lab → · Contrast checker → · Palette generator →

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