#948E2B#948E2B

#948E2B is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.3% C 0.118 H 105.9°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#948E2B
RGBrgb(148, 142, 43)
HSLhsl(57, 55%, 37%)
HSVhsv(57, 71%, 58%)
CMYKcmyk(0%, 4.1%, 70.9%, 42%)
CIE-LABlab(57.86, -9.89, 50.85)
CIE-LCHlch(57.86, 51.81, 101.00°)
OKLaboklab(63.34% -0.0322 0.1133)
OKLCHoklch(63.34% 0.118 105.9)
XYZxyz(22.3227, 25.8171, 6.0924)
Luminance0.2582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948E2B #2B3194
analogous
#94592B #948E2B #66942B
triadic
#948E2B #2B948E #8E2B94
tetradic
#948E2B #2B9459 #2B3194 #942B66
square
#948E2B #2B9459 #2B3194 #942B66
split-complementary
#948E2B #2B6694 #592B94
monochromatic
#35330F #65611D #948E2B #C3BB39 #D3CD67

Accessibility & contrast

On white

3.41
#948E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#948E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948E2B
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948E2B#FFFFFF#000000##000000
##948E2B1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A891B
Deuteranopia (green-blind)
#9D8D32
Tritanopia (blue-blind)
#9F847A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #948e2b;
/* rgb */ color: rgb(148, 142, 43);
/* oklch */ color: oklch(63.3% 0.118 105.9);
Tailwind
colors: {
  custom: {
    50: '#b7ae6b',
    500: '#948e2b',
    950: '#000000',
  },
}
SCSS
$custom: #948e2b;
$custom-light: #b7ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#948e2b",
  "rgb": {
    "r": 148,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 56.571,
    "s": 54.974,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63336,
    "c": 0.1178,
    "h": 105.9
  },
  "luminance": 0.25816
}

Semantic roles & 50–950 ramp

primary
#948E2B
secondary
#6267B9
accent
#52DE49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #948E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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