#948D20#948D20

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

Color values

HEX#948D20
RGBrgb(148, 141, 32)
HSLhsl(56, 64%, 35%)
HSVhsv(56, 78%, 58%)
CMYKcmyk(0%, 4.7%, 78.4%, 42%)
CIE-LABlab(57.51, -9.87, 54.56)
CIE-LCHlch(57.51, 55.44, 100.25°)
OKLaboklab(63.04% -0.0332 0.1191)
OKLCHoklch(63.04% 0.124 105.6)
XYZxyz(21.9993, 25.4508, 5.1199)
Luminance0.2545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948D20 #202794
analogous
#945320 #948D20 #619420
triadic
#948D20 #20948D #8D2094
tetradic
#948D20 #209453 #202794 #942061
square
#948D20 #209453 #202794 #942061
split-complementary
#948D20 #206194 #532094
monochromatic
#2F2D0A #625D15 #948D20 #C6BD2B #DAD254

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##948D20#FFFFFF#000000##000000
##948D201.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)
#9A8804
Deuteranopia (green-blind)
#9C8C29
Tritanopia (blue-blind)
#9F8379
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #948d20;
/* rgb */ color: rgb(148, 141, 32);
/* oklch */ color: oklch(63.0% 0.124 105.6);
Tailwind
colors: {
  custom: {
    50: '#b7ae65',
    500: '#948d20',
    950: '#000000',
  },
}
SCSS
$custom: #948d20;
$custom-light: #b7ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#948d20",
  "rgb": {
    "r": 148,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 56.379,
    "s": 64.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63035,
    "c": 0.12362,
    "h": 105.6
  },
  "luminance": 0.2545
}

Semantic roles & 50–950 ramp

primary
#948D20
secondary
#5259BE
accent
#4AE740
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948D20

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

Preview Lab → · Contrast checker → · Palette generator →

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