#948D23#948D23

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

Color values

HEX#948D23
RGBrgb(148, 141, 35)
HSLhsl(56, 62%, 36%)
HSVhsv(56, 76%, 58%)
CMYKcmyk(0%, 4.7%, 76.4%, 42%)
CIE-LABlab(57.53, -9.74, 53.54)
CIE-LCHlch(57.53, 54.42, 100.31°)
OKLaboklab(63.05% -0.0326 0.1175)
OKLCHoklch(63.05% 0.122 105.5)
XYZxyz(22.0419, 25.4678, 5.3445)
Luminance0.2547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948D23 #232A94
analogous
#945423 #948D23 #629423
triadic
#948D23 #23948D #8D2394
tetradic
#948D23 #239454 #232A94 #942362
square
#948D23 #239454 #232A94 #942362
split-complementary
#948D23 #236294 #542394
monochromatic
#312F0C #635E17 #948D23 #C5BC2F #D8D05A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##948D23#FFFFFF#000000##000000
##948D231.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)
#9A880C
Deuteranopia (green-blind)
#9C8C2B
Tritanopia (blue-blind)
#9F8379
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #948d23;
/* rgb */ color: rgb(148, 141, 35);
/* oklch */ color: oklch(63.1% 0.122 105.5);
Tailwind
colors: {
  custom: {
    50: '#b7ae67',
    500: '#948d23',
    950: '#000000',
  },
}
SCSS
$custom: #948d23;
$custom-light: #b7ae67;
$custom-dark: #000000;
JSON
{
  "hex": "#948d23",
  "rgb": {
    "r": 148,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 56.283,
    "s": 61.749,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63053,
    "c": 0.12193,
    "h": 105.5
  },
  "luminance": 0.25467
}

Semantic roles & 50–950 ramp

primary
#948D23
secondary
#575DBC
accent
#4DE543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948D23

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

Preview Lab → · Contrast checker → · Palette generator →

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