#CBD138#CBD138

#CBD138 is a very light, vivid yellow. Relative luminance 0.586; OKLCH L 83.0% C 0.166 H 111.8°. Best body text is #000000 at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#CBD138
RGBrgb(203, 209, 56)
HSLhsl(62, 62%, 52%)
HSVhsv(62, 73%, 82%)
CMYKcmyk(2.9%, 0%, 73.2%, 18%)
CIE-LABlab(81.06, -19.80, 70.11)
CIE-LCHlch(81.06, 72.86, 105.77°)
OKLaboklab(82.99% -0.0618 0.1545)
OKLCHoklch(82.99% 0.166 111.8)
XYZxyz(48.1445, 58.5842, 12.5124)
Luminance0.5858 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBD138 #3E38D1
analogous
#D18B38 #CBD138 #7FD138
triadic
#CBD138 #38CBD1 #D138CB
tetradic
#CBD138 #38D18B #3E38D1 #D1387F
square
#CBD138 #38D18B #3E38D1 #D1387F
split-complementary
#CBD138 #387FD1 #8B38D1
monochromatic
#70741B #A1A626 #CBD138 #D8DC6A #E5E89B

Accessibility & contrast

On white

1.65
#CBD138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.72
#CBD138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBD138
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBD138#FFFFFF#000000##000000
##CBD1381.001.6512.7212.72
#FFFFFF1.651.0021.0021.00
#00000012.7221.001.001.00
##00000012.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C717
Deuteranopia (green-blind)
#E2CB44
Tritanopia (blue-blind)
#D9C4B4
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cbd138;
/* rgb */ color: rgb(203, 209, 56);
/* oklch */ color: oklch(83.0% 0.166 111.8);
Tailwind
colors: {
  custom: {
    50: '#dfde7a',
    500: '#cbd138',
    950: '#000000',
  },
}
SCSS
$custom: #cbd138;
$custom-light: #dfde7a;
$custom-dark: #000000;
JSON
{
  "hex": "#cbd138",
  "rgb": {
    "r": 203,
    "g": 209,
    "b": 56
  },
  "hsl": {
    "h": 62.353,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.82995,
    "c": 0.16634,
    "h": 111.8
  },
  "luminance": 0.58583
}

Semantic roles & 50–950 ramp

primary
#CBD138
secondary
#34317C
accent
#42E649
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CBD138

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

Preview Lab → · Contrast checker → · Palette generator →

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