#918B21#918B21

#918B21 is a light, vivid yellow. Relative luminance 0.246; OKLCH L 62.3% C 0.122 H 106.1°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#918B21
RGBrgb(145, 139, 33)
HSLhsl(57, 63%, 35%)
HSVhsv(57, 77%, 57%)
CMYKcmyk(0%, 4.1%, 77.2%, 43.1%)
CIE-LABlab(56.68, -10.12, 53.36)
CIE-LCHlch(56.68, 54.31, 100.74°)
OKLaboklab(62.31% -0.0337 0.1168)
OKLCHoklch(62.31% 0.122 106.1)
XYZxyz(21.1851, 24.5956, 5.0700)
Luminance0.2460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#918B21 #212791
analogous
#915321 #918B21 #5F9121
triadic
#918B21 #21918B #8B2191
tetradic
#918B21 #219153 #212791 #91215F
square
#918B21 #219153 #212791 #91215F
split-complementary
#918B21 #215F91 #532191
monochromatic
#2D2B0A #5F5B16 #918B21 #C3BB2C #D8D154

Accessibility & contrast

On white

3.55
#918B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#918B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #918B21
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##918B21#FFFFFF#000000##000000
##918B211.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#988608
Deuteranopia (green-blind)
#9A8A29
Tritanopia (blue-blind)
#9C8177
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #918b21;
/* rgb */ color: rgb(145, 139, 33);
/* oklch */ color: oklch(62.3% 0.122 106.1);
Tailwind
colors: {
  custom: {
    50: '#b5ac65',
    500: '#918b21',
    950: '#000000',
  },
}
SCSS
$custom: #918b21;
$custom-light: #b5ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#918b21",
  "rgb": {
    "r": 145,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 56.786,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.62308,
    "c": 0.12158,
    "h": 106.1
  },
  "luminance": 0.24595
}

Semantic roles & 50–950 ramp

primary
#918B21
secondary
#5258BC
accent
#4BE642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #918B21

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

Preview Lab → · Contrast checker → · Palette generator →

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