#948E1F#948E1F

#948E1F 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#948E1F
RGBrgb(148, 142, 31)
HSLhsl(57, 65%, 35%)
HSVhsv(57, 79%, 58%)
CMYKcmyk(0%, 4.1%, 79.1%, 42%)
CIE-LABlab(57.79, -10.45, 55.14)
CIE-LCHlch(57.79, 56.12, 100.73°)
OKLaboklab(63.26% -0.035 0.1201)
OKLCHoklch(63.26% 0.125 106.2)
XYZxyz(22.1340, 25.7417, 5.0988)
Luminance0.2574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948E1F #1F2594
analogous
#94531F #948E1F #60941F
triadic
#948E1F #1F948E #8E1F94
tetradic
#948E1F #1F9453 #1F2594 #941F60
square
#948E1F #1F9453 #1F2594 #941F60
split-complementary
#948E1F #1F6094 #531F94
monochromatic
#2F2D0A #615D14 #948E1F #C7BF2A #DBD453

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##948E1F#FFFFFF#000000##000000
##948E1F1.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)
#9B8801
Deuteranopia (green-blind)
#9D8D28
Tritanopia (blue-blind)
#9F8479
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #948e1f;
/* rgb */ color: rgb(148, 142, 31);
/* oklch */ color: oklch(63.3% 0.125 106.2);
Tailwind
colors: {
  custom: {
    50: '#b7ae65',
    500: '#948e1f',
    950: '#000000',
  },
}
SCSS
$custom: #948e1f;
$custom-light: #b7ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#948e1f",
  "rgb": {
    "r": 148,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 56.923,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63255,
    "c": 0.12508,
    "h": 106.2
  },
  "luminance": 0.25741
}

Semantic roles & 50–950 ramp

primary
#948E1F
secondary
#5156BE
accent
#48E83F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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