#938D21#938D21

#938D21 is a light, vivid yellow. Relative luminance 0.254; OKLCH L 62.9% C 0.123 H 106.1°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#938D21
RGBrgb(147, 141, 33)
HSLhsl(57, 63%, 35%)
HSVhsv(57, 78%, 58%)
CMYKcmyk(0%, 4.1%, 77.6%, 42.4%)
CIE-LABlab(57.43, -10.28, 54.11)
CIE-LCHlch(57.43, 55.08, 100.76°)
OKLaboklab(62.95% -0.0343 0.1184)
OKLCHoklch(62.95% 0.123 106.1)
XYZxyz(21.8329, 25.3634, 5.1841)
Luminance0.2536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#938D21 #212793
analogous
#935421 #938D21 #609321
triadic
#938D21 #21938D #8D2193
tetradic
#938D21 #219354 #212793 #932160
square
#938D21 #219354 #212793 #932160
split-complementary
#938D21 #216093 #542193
monochromatic
#2F2D0B #615D16 #938D21 #C5BD2C #D9D255

Accessibility & contrast

On white

3.46
#938D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#938D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #938D21
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##938D21#FFFFFF#000000##000000
##938D211.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #938d21;
/* rgb */ color: rgb(147, 141, 33);
/* oklch */ color: oklch(62.9% 0.123 106.1);
Tailwind
colors: {
  custom: {
    50: '#b6ae66',
    500: '#938d21',
    950: '#000000',
  },
}
SCSS
$custom: #938d21;
$custom-light: #b6ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#938d21",
  "rgb": {
    "r": 147,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 56.842,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.62948,
    "c": 0.12321,
    "h": 106.1
  },
  "luminance": 0.25363
}

Semantic roles & 50–950 ramp

primary
#938D21
secondary
#5359BD
accent
#4AE641
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #938D21

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

Preview Lab → · Contrast checker → · Palette generator →

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