#CFB948#CFB948

#CFB948 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 78.4% C 0.133 H 98.2°. Best body text is #000000 at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#CFB948
RGBrgb(207, 185, 72)
HSLhsl(50, 58%, 55%)
HSVhsv(50, 65%, 81%)
CMYKcmyk(0%, 10.6%, 65.2%, 18.8%)
CIE-LABlab(75.10, -5.13, 58.21)
CIE-LCHlch(75.10, 58.44, 95.04°)
OKLaboklab(78.36% -0.019 0.1319)
OKLCHoklch(78.36% 0.133 98.2)
XYZxyz(44.2527, 48.4333, 13.1472)
Luminance0.4843 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB948 #485ECF
analogous
#CF7548 #CFB948 #A2CF48
triadic
#CFB948 #48CFB9 #B948CF
tetradic
#CFB948 #48CF75 #485ECF #CF48A2
square
#CFB948 #48CF75 #485ECF #CF48A2
split-complementary
#CFB948 #48A2CF #7548CF
monochromatic
#7C6D21 #AD982D #CFB948 #DCCC78 #E8DEA9

Accessibility & contrast

On white

1.97
#CFB948 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.69
#CFB948 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB948
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB948#FFFFFF#000000##000000
##CFB9481.001.9710.6910.69
#FFFFFF1.971.0021.0021.00
#00000010.6921.001.001.00
##00000010.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB53A
Deuteranopia (green-blind)
#D0BC4E
Tritanopia (blue-blind)
#DFACA1
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #cfb948;
/* rgb */ color: rgb(207, 185, 72);
/* oklch */ color: oklch(78.4% 0.133 98.2);
Tailwind
colors: {
  custom: {
    50: '#e1cd80',
    500: '#cfb948',
    950: '#000000',
  },
}
SCSS
$custom: #cfb948;
$custom-light: #e1cd80;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb948",
  "rgb": {
    "r": 207,
    "g": 185,
    "b": 72
  },
  "hsl": {
    "h": 50.222,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.78359,
    "c": 0.13323,
    "h": 98.2
  },
  "luminance": 0.48431
}

Semantic roles & 50–950 ramp

primary
#CFB948
secondary
#9DA6D6
accent
#5FE246
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CFB948

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

Preview Lab → · Contrast checker → · Palette generator →

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