#8A8E1B#8A8E1B

#8A8E1B is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.3% C 0.129 H 111.7°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A8E1B
RGBrgb(138, 142, 27)
HSLhsl(62, 68%, 33%)
HSVhsv(62, 81%, 56%)
CMYKcmyk(2.8%, 0%, 81%, 44.3%)
CIE-LABlab(56.91, -15.13, 55.26)
CIE-LCHlch(56.91, 57.30, 105.31°)
OKLaboklab(62.33% -0.0478 0.12)
OKLCHoklch(62.33% 0.129 111.7)
XYZxyz(20.3528, 24.8289, 4.7570)
Luminance0.2483 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E1B #1F1B8E
analogous
#8E581B #8A8E1B #508E1B
triadic
#8A8E1B #1B8A8E #8E1B8A
tetradic
#8A8E1B #1B8E58 #1F1B8E #8E1B50
square
#8A8E1B #1B8E58 #1F1B8E #8E1B50
split-complementary
#8A8E1B #1B508E #581B8E
monochromatic
#262707 #585B11 #8A8E1B #BCC125 #D7DC47

Accessibility & contrast

On white

3.52
#8A8E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#8A8E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8E1B
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8E1B#FFFFFF#000000##000000
##8A8E1B1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#9A8A26
Tritanopia (blue-blind)
#948579
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e1b;
/* rgb */ color: rgb(138, 142, 27);
/* oklch */ color: oklch(62.3% 0.129 111.7);
Tailwind
colors: {
  custom: {
    50: '#b0ae63',
    500: '#8a8e1b',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e1b;
$custom-light: #b0ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e1b",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 62.087,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.62334,
    "c": 0.1292,
    "h": 111.7
  },
  "luminance": 0.24828
}

Semantic roles & 50–950 ramp

primary
#8A8E1B
secondary
#4B47BE
accent
#3DEB43
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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