#CFB248#CFB248

#CFB248 is a light, vivid yellow. Relative luminance 0.456; OKLCH L 76.9% C 0.128 H 93.8°. Best body text is #000000 at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#CFB248
RGBrgb(207, 178, 72)
HSLhsl(47, 58%, 55%)
HSVhsv(47, 65%, 81%)
CMYKcmyk(0%, 14%, 65.2%, 18.8%)
CIE-LABlab(73.27, -1.47, 56.27)
CIE-LCHlch(73.27, 56.29, 91.50°)
OKLaboklab(76.91% -0.0085 0.1278)
OKLCHoklch(76.91% 0.128 93.8)
XYZxyz(42.8243, 45.5763, 12.6711)
Luminance0.4557 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB248 #4865CF
analogous
#CF6E48 #CFB248 #A9CF48
triadic
#CFB248 #48CFB2 #B248CF
tetradic
#CFB248 #48CF6E #4865CF #CF48A9
square
#CFB248 #48CF6E #4865CF #CF48A9
split-complementary
#CFB248 #48A9CF #6E48CF
monochromatic
#7C6821 #AD912D #CFB248 #DCC678 #E8DBA9

Accessibility & contrast

On white

2.08
#CFB248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.11
#CFB248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB248
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB248#FFFFFF#000000##000000
##CFB2481.002.0810.1110.11
#FFFFFF2.081.0021.0021.00
#00000010.1121.001.001.00
##00000010.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF3B
Deuteranopia (green-blind)
#CBB84D
Tritanopia (blue-blind)
#DFA59C
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cfb248;
/* rgb */ color: rgb(207, 178, 72);
/* oklch */ color: oklch(76.9% 0.128 93.8);
Tailwind
colors: {
  custom: {
    50: '#e1c880',
    500: '#cfb248',
    950: '#000000',
  },
}
SCSS
$custom: #cfb248;
$custom-light: #e1c880;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb248",
  "rgb": {
    "r": 207,
    "g": 178,
    "b": 72
  },
  "hsl": {
    "h": 47.111,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.76913,
    "c": 0.12803,
    "h": 93.8
  },
  "luminance": 0.45574
}

Semantic roles & 50–950 ramp

primary
#CFB248
secondary
#9DA9D6
accent
#68E246
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFB248

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

Preview Lab → · Contrast checker → · Palette generator →

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