#918D21#918D21

#918D21 is a light, vivid yellow. Relative luminance 0.252; OKLCH L 62.8% C 0.124 H 107.3°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#918D21
RGBrgb(145, 141, 33)
HSLhsl(58, 63%, 35%)
HSVhsv(58, 77%, 57%)
CMYKcmyk(0%, 2.8%, 77.2%, 43.1%)
CIE-LABlab(57.25, -11.19, 53.88)
CIE-LCHlch(57.25, 55.03, 101.73°)
OKLaboklab(62.76% -0.0367 0.118)
OKLCHoklch(62.76% 0.124 107.3)
XYZxyz(21.4773, 25.1801, 5.1675)
Luminance0.2518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#918D21 #212591
analogous
#915521 #918D21 #5D9121
triadic
#918D21 #21918D #8D2191
tetradic
#918D21 #219155 #212591 #91215D
square
#918D21 #219155 #212591 #91215D
split-complementary
#918D21 #215D91 #552191
monochromatic
#2D2C0A #5F5D16 #918D21 #C3BD2C #D8D354

Accessibility & contrast

On white

3.48
#918D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#918D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #918D21
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##918D21#FFFFFF#000000##000000
##918D211.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)
#998707
Deuteranopia (green-blind)
#9B8B2A
Tritanopia (blue-blind)
#9C8379
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #918d21;
/* rgb */ color: rgb(145, 141, 33);
/* oklch */ color: oklch(62.8% 0.124 107.3);
Tailwind
colors: {
  custom: {
    50: '#b5ae66',
    500: '#918d21',
    950: '#000000',
  },
}
SCSS
$custom: #918d21;
$custom-light: #b5ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#918d21",
  "rgb": {
    "r": 145,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 57.857,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.62763,
    "c": 0.12352,
    "h": 107.3
  },
  "luminance": 0.25179
}

Semantic roles & 50–950 ramp

primary
#918D21
secondary
#5256BC
accent
#48E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #918D21

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

Preview Lab → · Contrast checker → · Palette generator →

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