#918E21#918E21

#918E21 is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.0% C 0.125 H 107.9°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#918E21
RGBrgb(145, 142, 33)
HSLhsl(58, 63%, 35%)
HSVhsv(58, 77%, 57%)
CMYKcmyk(0%, 2.1%, 77.2%, 43.1%)
CIE-LABlab(57.54, -11.73, 54.15)
CIE-LCHlch(57.54, 55.40, 102.22°)
OKLaboklab(62.99% -0.0382 0.1185)
OKLCHoklch(62.99% 0.125 107.9)
XYZxyz(21.6254, 25.4763, 5.2168)
Luminance0.2548 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#918E21 #212491
analogous
#915621 #918E21 #5C9121
triadic
#918E21 #21918E #8E2191
tetradic
#918E21 #219156 #212491 #91215C
square
#918E21 #219156 #212491 #91215C
split-complementary
#918E21 #215C91 #562191
monochromatic
#2D2C0A #5F5D16 #918E21 #C3BF2C #D8D554

Accessibility & contrast

On white

3.45
#918E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#918E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #918E21
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##918E21#FFFFFF#000000##000000
##918E211.003.456.106.10
#FFFFFF3.451.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8806
Deuteranopia (green-blind)
#9C8C2A
Tritanopia (blue-blind)
#9C847A
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #918e21;
/* rgb */ color: rgb(145, 142, 33);
/* oklch */ color: oklch(63.0% 0.125 107.9);
Tailwind
colors: {
  custom: {
    50: '#b5ae66',
    500: '#918e21',
    950: '#000000',
  },
}
SCSS
$custom: #918e21;
$custom-light: #b5ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#918e21",
  "rgb": {
    "r": 145,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 58.393,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.62992,
    "c": 0.12451,
    "h": 107.9
  },
  "luminance": 0.25476
}

Semantic roles & 50–950 ramp

primary
#918E21
secondary
#5255BC
accent
#46E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #918E21

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

Preview Lab → · Contrast checker → · Palette generator →

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