#948E20#948E20

#948E20 is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.3% C 0.125 H 106.2°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#948E20
RGBrgb(148, 142, 32)
HSLhsl(57, 64%, 35%)
HSVhsv(57, 78%, 58%)
CMYKcmyk(0%, 4.1%, 78.4%, 42%)
CIE-LABlab(57.80, -10.41, 54.82)
CIE-LCHlch(57.80, 55.79, 100.75°)
OKLaboklab(63.26% -0.0348 0.1196)
OKLCHoklch(63.26% 0.125 106.2)
XYZxyz(22.1474, 25.7470, 5.1693)
Luminance0.2575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948E20 #202694
analogous
#945420 #948E20 #609420
triadic
#948E20 #20948E #8E2094
tetradic
#948E20 #209454 #202694 #942060
square
#948E20 #209454 #202694 #942060
split-complementary
#948E20 #206094 #542094
monochromatic
#2F2D0A #625E15 #948E20 #C6BE2B #DAD354

Accessibility & contrast

On white

3.42
#948E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#948E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948E20
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948E20#FFFFFF#000000##000000
##948E201.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8803
Deuteranopia (green-blind)
#9D8D29
Tritanopia (blue-blind)
#9F8479
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #948e20;
/* rgb */ color: rgb(148, 142, 32);
/* oklch */ color: oklch(63.3% 0.125 106.2);
Tailwind
colors: {
  custom: {
    50: '#b7ae65',
    500: '#948e20',
    950: '#000000',
  },
}
SCSS
$custom: #948e20;
$custom-light: #b7ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#948e20",
  "rgb": {
    "r": 148,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 56.897,
    "s": 64.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63261,
    "c": 0.12456,
    "h": 106.2
  },
  "luminance": 0.25746
}

Semantic roles & 50–950 ramp

primary
#948E20
secondary
#5258BE
accent
#49E740
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948E20

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

Preview Lab → · Contrast checker → · Palette generator →

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