#CAB254#CAB254

#CAB254 is a light, moderate yellow. Relative luminance 0.450; OKLCH L 76.6% C 0.117 H 95.2°. Best body text is #000000 at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#CAB254
RGBrgb(202, 178, 84)
HSLhsl(48, 53%, 56%)
HSVhsv(48, 58%, 79%)
CMYKcmyk(0%, 11.9%, 58.4%, 20.8%)
CIE-LABlab(72.92, -2.79, 50.30)
CIE-LCHlch(72.92, 50.38, 93.18°)
OKLaboklab(76.56% -0.0105 0.1168)
OKLCHoklch(76.56% 0.117 95.2)
XYZxyz(41.8795, 45.0394, 14.8733)
Luminance0.4504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB254 #546CCA
analogous
#CA7754 #CAB254 #A7CA54
triadic
#CAB254 #54CAB2 #B254CA
tetradic
#CAB254 #54CA77 #546CCA #CA54A7
square
#CAB254 #54CA77 #546CCA #CA54A7
split-complementary
#CAB254 #54A7CA #7754CA
monochromatic
#7D6B27 #AC9435 #CAB254 #D8C783 #E7DCB1

Accessibility & contrast

On white

2.10
#CAB254 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.01
#CAB254 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB254
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB254#FFFFFF#000000##000000
##CAB2541.002.1010.0110.01
#FFFFFF2.101.0021.0021.00
#00000010.0121.001.001.00
##00000010.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AF4B
Deuteranopia (green-blind)
#C8B658
Tritanopia (blue-blind)
#D9A69D
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cab254;
/* rgb */ color: rgb(202, 178, 84);
/* oklch */ color: oklch(76.6% 0.117 95.2);
Tailwind
colors: {
  custom: {
    50: '#ddc887',
    500: '#cab254',
    950: '#000000',
  },
}
SCSS
$custom: #cab254;
$custom-light: #ddc887;
$custom-dark: #000000;
JSON
{
  "hex": "#cab254",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 84
  },
  "hsl": {
    "h": 47.797,
    "s": 52.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.76562,
    "c": 0.11727,
    "h": 95.2
  },
  "luminance": 0.45037
}

Semantic roles & 50–950 ramp

primary
#CAB254
secondary
#A5AED5
accent
#69DC4C
background
#FDFCF8
surface
#FBF8F0
border
#D4D1CB
text
#15130B
muted
#83827C

Preview Lab

Preview with #CAB254

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

Preview Lab → · Contrast checker → · Palette generator →

#CAB254 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva