#948D22#948D22

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

Color values

HEX#948D22
RGBrgb(148, 141, 34)
HSLhsl(56, 63%, 36%)
HSVhsv(56, 77%, 58%)
CMYKcmyk(0%, 4.7%, 77%, 42%)
CIE-LABlab(57.52, -9.79, 53.89)
CIE-LCHlch(57.52, 54.77, 100.29°)
OKLaboklab(63.05% -0.0328 0.118)
OKLCHoklch(63.05% 0.123 105.5)
XYZxyz(22.0273, 25.4620, 5.2674)
Luminance0.2546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948D22 #222994
analogous
#945422 #948D22 #629422
triadic
#948D22 #22948D #8D2294
tetradic
#948D22 #229454 #222994 #942262
square
#948D22 #229454 #222994 #942262
split-complementary
#948D22 #226294 #542294
monochromatic
#302E0B #625E17 #948D22 #C6BC2D #D9D158

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##948D22#FFFFFF#000000##000000
##948D221.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)
#9A8809
Deuteranopia (green-blind)
#9C8C2A
Tritanopia (blue-blind)
#9F8379
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #948d22;
/* rgb */ color: rgb(148, 141, 34);
/* oklch */ color: oklch(63.0% 0.123 105.5);
Tailwind
colors: {
  custom: {
    50: '#b7ae66',
    500: '#948d22',
    950: '#000000',
  },
}
SCSS
$custom: #948d22;
$custom-light: #b7ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#948d22",
  "rgb": {
    "r": 148,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 56.316,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63047,
    "c": 0.12251,
    "h": 105.5
  },
  "luminance": 0.25461
}

Semantic roles & 50–950 ramp

primary
#948D22
secondary
#555BBD
accent
#4CE642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948D22

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

Preview Lab → · Contrast checker → · Palette generator →

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