#948C22#948C22

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

Color values

HEX#948C22
RGBrgb(148, 140, 34)
HSLhsl(56, 63%, 36%)
HSVhsv(56, 77%, 58%)
CMYKcmyk(0%, 5.4%, 77%, 42%)
CIE-LABlab(57.24, -9.25, 53.63)
CIE-LCHlch(57.24, 54.42, 99.78°)
OKLaboklab(62.82% -0.0313 0.1175)
OKLCHoklch(62.82% 0.122 104.9)
XYZxyz(21.8805, 25.1684, 5.2185)
Luminance0.2517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948C22 #222A94
analogous
#945322 #948C22 #639422
triadic
#948C22 #22948C #8C2294
tetradic
#948C22 #229453 #222A94 #942263
square
#948C22 #229453 #222A94 #942263
split-complementary
#948C22 #226394 #532294
monochromatic
#302E0B #625D17 #948C22 #C6BB2D #D9D058

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##948C22#FFFFFF#000000##000000
##948C221.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)
#99870A
Deuteranopia (green-blind)
#9C8B2A
Tritanopia (blue-blind)
#9F8278
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #948c22;
/* rgb */ color: rgb(148, 140, 34);
/* oklch */ color: oklch(62.8% 0.122 104.9);
Tailwind
colors: {
  custom: {
    50: '#b7ad66',
    500: '#948c22',
    950: '#000000',
  },
}
SCSS
$custom: #948c22;
$custom-light: #b7ad66;
$custom-dark: #000000;
JSON
{
  "hex": "#948c22",
  "rgb": {
    "r": 148,
    "g": 140,
    "b": 34
  },
  "hsl": {
    "h": 55.789,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.62821,
    "c": 0.12157,
    "h": 104.9
  },
  "luminance": 0.25168
}

Semantic roles & 50–950 ramp

primary
#948C22
secondary
#555CBD
accent
#4EE642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948C22

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

Preview Lab → · Contrast checker → · Palette generator →

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