#918A21#918A21

#918A21 is a light, vivid yellow. Relative luminance 0.243; OKLCH L 62.1% C 0.121 H 105.5°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#918A21
RGBrgb(145, 138, 33)
HSLhsl(56, 63%, 35%)
HSVhsv(56, 77%, 57%)
CMYKcmyk(0%, 4.8%, 77.2%, 43.1%)
CIE-LABlab(56.39, -9.58, 53.09)
CIE-LCHlch(56.39, 53.95, 100.22°)
OKLaboklab(62.08% -0.0322 0.1163)
OKLCHoklch(62.08% 0.121 105.5)
XYZxyz(21.0409, 24.3073, 5.0220)
Luminance0.2431 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#918A21 #212891
analogous
#915221 #918A21 #609121
triadic
#918A21 #21918A #8A2191
tetradic
#918A21 #219152 #212891 #912160
square
#918A21 #219152 #212891 #912160
split-complementary
#918A21 #216091 #522191
monochromatic
#2D2B0A #5F5B16 #918A21 #C3B92C #D8D054

Accessibility & contrast

On white

3.58
#918A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#918A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #918A21
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##918A21#FFFFFF#000000##000000
##918A211.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#978509
Deuteranopia (green-blind)
#998929
Tritanopia (blue-blind)
#9C8076
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #918a21;
/* rgb */ color: rgb(145, 138, 33);
/* oklch */ color: oklch(62.1% 0.121 105.5);
Tailwind
colors: {
  custom: {
    50: '#b5ab65',
    500: '#918a21',
    950: '#000000',
  },
}
SCSS
$custom: #918a21;
$custom-light: #b5ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#918a21",
  "rgb": {
    "r": 145,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 56.25,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.62081,
    "c": 0.12063,
    "h": 105.5
  },
  "luminance": 0.24307
}

Semantic roles & 50–950 ramp

primary
#918A21
secondary
#5259BC
accent
#4CE642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #918A21

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

Preview Lab → · Contrast checker → · Palette generator →

#918A21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva