#CDBA38#CDBA38

#CDBA38 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 78.3% C 0.145 H 100.7°. Best body text is #000000 at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#CDBA38
RGBrgb(205, 186, 56)
HSLhsl(52, 60%, 51%)
HSVhsv(52, 73%, 80%)
CMYKcmyk(0%, 9.3%, 72.7%, 19.6%)
CIE-LABlab(75.07, -7.35, 64.46)
CIE-LCHlch(75.07, 64.88, 96.51°)
OKLaboklab(78.26% -0.0269 0.1424)
OKLCHoklch(78.26% 0.145 100.7)
XYZxyz(43.4516, 48.3845, 10.7910)
Luminance0.4838 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDBA38 #384BCD
analogous
#CD6F38 #CDBA38 #95CD38
triadic
#CDBA38 #38CDBA #BA38CD
tetradic
#CDBA38 #38CD6F #384BCD #CD3895
square
#CDBA38 #38CD6F #384BCD #CD3895
split-complementary
#CDBA38 #3895CD #6F38CD
monochromatic
#6F641C #A09028 #CDBA38 #D9CB69 #E6DC9A

Accessibility & contrast

On white

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

On black

10.68
#CDBA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDBA38
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDBA38#FFFFFF#000000##000000
##CDBA381.001.9710.6810.68
#FFFFFF1.971.0021.0021.00
#00000010.6821.001.001.00
##00000010.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB522
Deuteranopia (green-blind)
#D1BC41
Tritanopia (blue-blind)
#DDACA1
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #cdba38;
/* rgb */ color: rgb(205, 186, 56);
/* oklch */ color: oklch(78.3% 0.145 100.7);
Tailwind
colors: {
  custom: {
    50: '#e0ce77',
    500: '#cdba38',
    950: '#000000',
  },
}
SCSS
$custom: #cdba38;
$custom-light: #e0ce77;
$custom-dark: #000000;
JSON
{
  "hex": "#cdba38",
  "rgb": {
    "r": 205,
    "g": 186,
    "b": 56
  },
  "hsl": {
    "h": 52.349,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.78256,
    "c": 0.14492,
    "h": 100.7
  },
  "luminance": 0.48382
}

Semantic roles & 50–950 ramp

primary
#CDBA38
secondary
#8F98D1
accent
#59E345
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CDBA38

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

Preview Lab → · Contrast checker → · Palette generator →

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