#CCB238#CCB238

#CCB238 is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.5% C 0.139 H 96.7°. Best body text is #000000 at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#CCB238
RGBrgb(204, 178, 56)
HSLhsl(49, 59%, 51%)
HSVhsv(49, 73%, 80%)
CMYKcmyk(0%, 12.7%, 72.5%, 20%)
CIE-LABlab(72.87, -3.62, 62.30)
CIE-LCHlch(72.87, 62.40, 93.33°)
OKLaboklab(76.49% -0.0163 0.1379)
OKLCHoklch(76.49% 0.139 96.7)
XYZxyz(41.5381, 44.9659, 10.2320)
Luminance0.4496 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB238 #3852CC
analogous
#CC6838 #CCB238 #9CCC38
triadic
#CCB238 #38CCB2 #B238CC
tetradic
#CCB238 #38CC68 #3852CC #CC389C
square
#CCB238 #38CC68 #3852CC #CC389C
split-complementary
#CCB238 #389CCC #6838CC
monochromatic
#6E5F1C #9E8A29 #CCB238 #D8C569 #E5D899

Accessibility & contrast

On white

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

On black

9.99
#CCB238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB238
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB238#FFFFFF#000000##000000
##CCB2381.002.109.999.99
#FFFFFF2.101.0021.0021.00
#0000009.9921.001.001.00
##0000009.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE24
Deuteranopia (green-blind)
#CBB63F
Tritanopia (blue-blind)
#DCA49A
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb238;
/* rgb */ color: rgb(204, 178, 56);
/* oklch */ color: oklch(76.5% 0.139 96.7);
Tailwind
colors: {
  custom: {
    50: '#dfc877',
    500: '#ccb238',
    950: '#000000',
  },
}
SCSS
$custom: #ccb238;
$custom-light: #dfc877;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb238",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 49.459,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.76493,
    "c": 0.13882,
    "h": 96.7
  },
  "luminance": 0.44964
}

Semantic roles & 50–950 ramp

primary
#CCB238
secondary
#8F9BD1
accent
#61E245
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CCB238

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

Preview Lab → · Contrast checker → · Palette generator →

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