#8A8F12#8A8F12

#8A8F12 is a light, vivid yellow. Relative luminance 0.251; OKLCH L 62.5% C 0.134 H 112.2°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8A8F12
RGBrgb(138, 143, 18)
HSLhsl(62, 78%, 32%)
HSVhsv(62, 87%, 56%)
CMYKcmyk(3.5%, 0%, 87.4%, 43.9%)
CIE-LABlab(57.17, -15.94, 57.83)
CIE-LCHlch(57.17, 59.98, 105.41°)
OKLaboklab(62.53% -0.0506 0.124)
OKLCHoklch(62.53% 0.134 112.2)
XYZxyz(20.4136, 25.0924, 4.3401)
Luminance0.2509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F12 #17128F
analogous
#8F5612 #8A8F12 #4C8F12
triadic
#8A8F12 #128A8F #8F128A
tetradic
#8A8F12 #128F56 #17128F #8F124C
square
#8A8F12 #128F56 #17128F #8F124C
split-complementary
#8A8F12 #124C8F #56128F
monochromatic
#212204 #56590B #8A8F12 #BEC519 #DFE636

Accessibility & contrast

On white

3.49
#8A8F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#8A8F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F12
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F12#FFFFFF#000000##000000
##8A8F121.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#9B8B20
Tritanopia (blue-blind)
#94867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8f12;
/* rgb */ color: rgb(138, 143, 18);
/* oklch */ color: oklch(62.5% 0.134 112.2);
Tailwind
colors: {
  custom: {
    50: '#b0af60',
    500: '#8a8f12',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f12;
$custom-light: #b0af60;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f12",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 62.4,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.62529,
    "c": 0.13392,
    "h": 112.2
  },
  "luminance": 0.25092
}

Semantic roles & 50–950 ramp

primary
#8A8F12
secondary
#3F3AC3
accent
#34F43B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8A8F12

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

Preview Lab → · Contrast checker → · Palette generator →

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