#948D21#948D21

#948D21 is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.0% C 0.123 H 105.6°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#948D21
RGBrgb(148, 141, 33)
HSLhsl(56, 64%, 35%)
HSVhsv(56, 78%, 58%)
CMYKcmyk(0%, 4.7%, 77.7%, 42%)
CIE-LABlab(57.52, -9.83, 54.23)
CIE-LCHlch(57.52, 55.11, 100.27°)
OKLaboklab(63.04% -0.0331 0.1186)
OKLCHoklch(63.04% 0.123 105.6)
XYZxyz(22.0131, 25.4563, 5.1926)
Luminance0.2545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948D21 #212894
analogous
#945321 #948D21 #619421
triadic
#948D21 #21948D #8D2194
tetradic
#948D21 #219453 #212894 #942161
square
#948D21 #219453 #212894 #942161
split-complementary
#948D21 #216194 #532194
monochromatic
#302E0B #625D16 #948D21 #C6BD2C #D9D156

Accessibility & contrast

On white

3.45
#948D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#948D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948D21
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948D21#FFFFFF#000000##000000
##948D211.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #948d21;
/* rgb */ color: rgb(148, 141, 33);
/* oklch */ color: oklch(63.0% 0.123 105.6);
Tailwind
colors: {
  custom: {
    50: '#b7ae66',
    500: '#948d21',
    950: '#000000',
  },
}
SCSS
$custom: #948d21;
$custom-light: #b7ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#948d21",
  "rgb": {
    "r": 148,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 56.348,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.6304,
    "c": 0.12307,
    "h": 105.6
  },
  "luminance": 0.25455
}

Semantic roles & 50–950 ramp

primary
#948D21
secondary
#545ABD
accent
#4BE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948D21

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

Preview Lab → · Contrast checker → · Palette generator →

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