#8B8F12#8B8F12

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

Color values

HEX#8B8F12
RGBrgb(139, 143, 18)
HSLhsl(62, 78%, 32%)
HSVhsv(62, 87%, 56%)
CMYKcmyk(2.8%, 0%, 87.4%, 43.9%)
CIE-LABlab(57.25, -15.48, 57.93)
CIE-LCHlch(57.25, 59.96, 104.96°)
OKLaboklab(62.62% -0.0494 0.1242)
OKLCHoklch(62.62% 0.134 111.7)
XYZxyz(20.5799, 25.1781, 4.3479)
Luminance0.2518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8F12 #16128F
analogous
#8F5512 #8B8F12 #4D8F12
triadic
#8B8F12 #128B8F #8F128B
tetradic
#8B8F12 #128F55 #16128F #8F124D
square
#8B8F12 #128F55 #16128F #8F124D
split-complementary
#8B8F12 #124D8F #55128F
monochromatic
#212204 #56590B #8B8F12 #C0C519 #E0E636

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B8F12#FFFFFF#000000##000000
##8B8F121.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)
#9B8800
Deuteranopia (green-blind)
#9B8B20
Tritanopia (blue-blind)
#95857A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8b8f12;
/* rgb */ color: rgb(139, 143, 18);
/* oklch */ color: oklch(62.6% 0.134 111.7);
Tailwind
colors: {
  custom: {
    50: '#b1af60',
    500: '#8b8f12',
    950: '#000000',
  },
}
SCSS
$custom: #8b8f12;
$custom-light: #b1af60;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8f12",
  "rgb": {
    "r": 139,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 61.92,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.62616,
    "c": 0.13364,
    "h": 111.7
  },
  "luminance": 0.25178
}

Semantic roles & 50–950 ramp

primary
#8B8F12
secondary
#3E3AC3
accent
#34F43A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8B8F12

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

Preview Lab → · Contrast checker → · Palette generator →

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