#948B1C#948B1C

#948B1C is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.6% C 0.124 H 104.5°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#948B1C
RGBrgb(148, 139, 28)
HSLhsl(56, 68%, 35%)
HSVhsv(56, 81%, 58%)
CMYKcmyk(0%, 6.1%, 81.1%, 42%)
CIE-LABlab(56.92, -8.95, 55.31)
CIE-LCHlch(56.92, 56.03, 99.19°)
OKLaboklab(62.56% -0.031 0.1199)
OKLCHoklch(62.56% 0.124 104.5)
XYZxyz(21.6559, 24.8459, 4.7534)
Luminance0.2485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948B1C #1C2594
analogous
#944F1C #948B1C #61941C
triadic
#948B1C #1C948B #8B1C94
tetradic
#948B1C #1C944F #1C2594 #941C61
square
#948B1C #1C944F #1C2594 #941C61
split-complementary
#948B1C #1C6194 #4F1C94
monochromatic
#2D2A09 #615B12 #948B1C #C7BB26 #DDD34D

Accessibility & contrast

On white

3.52
#948B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#948B1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948B1C
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948B1C#FFFFFF#000000##000000
##948B1C1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#9B8B25
Tritanopia (blue-blind)
#A08177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #948b1c;
/* rgb */ color: rgb(148, 139, 28);
/* oklch */ color: oklch(62.6% 0.124 104.5);
Tailwind
colors: {
  custom: {
    50: '#b7ac63',
    500: '#948b1c',
    950: '#000000',
  },
}
SCSS
$custom: #948b1c;
$custom-light: #b7ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#948b1c",
  "rgb": {
    "r": 148,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 55.5,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.62561,
    "c": 0.12383,
    "h": 104.5
  },
  "luminance": 0.24845
}

Semantic roles & 50–950 ramp

primary
#948B1C
secondary
#4C55C0
accent
#4AEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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