#948C20#948C20

#948C20 is a light, vivid yellow. Relative luminance 0.252; OKLCH L 62.8% C 0.123 H 105.0°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#948C20
RGBrgb(148, 140, 32)
HSLhsl(56, 64%, 35%)
HSVhsv(56, 78%, 58%)
CMYKcmyk(0%, 5.4%, 78.4%, 42%)
CIE-LABlab(57.23, -9.33, 54.30)
CIE-LCHlch(57.23, 55.09, 99.75°)
OKLaboklab(62.81% -0.0317 0.1185)
OKLCHoklch(62.81% 0.123 105)
XYZxyz(21.8525, 25.1572, 5.0710)
Luminance0.2516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948C20 #202894
analogous
#945220 #948C20 #629420
triadic
#948C20 #20948C #8C2094
tetradic
#948C20 #209452 #202894 #942062
square
#948C20 #209452 #202894 #942062
split-complementary
#948C20 #206294 #522094
monochromatic
#2F2D0A #625C15 #948C20 #C6BC2B #DAD154

Accessibility & contrast

On white

3.48
#948C20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#948C20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948C20
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948C20#FFFFFF#000000##000000
##948C201.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998705
Deuteranopia (green-blind)
#9C8B29
Tritanopia (blue-blind)
#9F8278
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #948c20;
/* rgb */ color: rgb(148, 140, 32);
/* oklch */ color: oklch(62.8% 0.123 105.0);
Tailwind
colors: {
  custom: {
    50: '#b7ad65',
    500: '#948c20',
    950: '#000000',
  },
}
SCSS
$custom: #948c20;
$custom-light: #b7ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#948c20",
  "rgb": {
    "r": 148,
    "g": 140,
    "b": 32
  },
  "hsl": {
    "h": 55.862,
    "s": 64.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.62809,
    "c": 0.12269,
    "h": 105
  },
  "luminance": 0.25156
}

Semantic roles & 50–950 ramp

primary
#948C20
secondary
#525ABE
accent
#4CE740
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948C20

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

Preview Lab → · Contrast checker → · Palette generator →

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