#CBA940#CBA940

#CBA940 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.6% C 0.127 H 90.8°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#CBA940
RGBrgb(203, 169, 64)
HSLhsl(45, 57%, 52%)
HSVhsv(45, 68%, 80%)
CMYKcmyk(0%, 16.7%, 68.5%, 20.4%)
CIE-LABlab(70.49, 1.11, 56.66)
CIE-LCHlch(70.49, 56.67, 88.88°)
OKLaboklab(74.61% -0.0018 0.1274)
OKLCHoklch(74.61% 0.127 90.8)
XYZxyz(39.7441, 41.4449, 10.7558)
Luminance0.4144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBA940 #4062CB
analogous
#CB6440 #CBA940 #A7CB40
triadic
#CBA940 #40CBA9 #A940CB
tetradic
#CBA940 #40CB64 #4062CB #CB40A7
square
#CBA940 #40CB64 #4062CB #CB40A7
split-complementary
#CBA940 #40A7CB #6440CB
monochromatic
#725D1F #A2852C #CBA940 #D8BF70 #E5D4A0

Accessibility & contrast

On white

2.26
#CBA940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#CBA940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBA940
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBA940#FFFFFF#000000##000000
##CBA9401.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA733
Deuteranopia (green-blind)
#C4B045
Tritanopia (blue-blind)
#DB9B93
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cba940;
/* rgb */ color: rgb(203, 169, 64);
/* oklch */ color: oklch(74.6% 0.127 90.8);
Tailwind
colors: {
  custom: {
    50: '#dfc27a',
    500: '#cba940',
    950: '#000000',
  },
}
SCSS
$custom: #cba940;
$custom-light: #dfc27a;
$custom-dark: #000000;
JSON
{
  "hex": "#cba940",
  "rgb": {
    "r": 203,
    "g": 169,
    "b": 64
  },
  "hsl": {
    "h": 45.324,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.74606,
    "c": 0.12742,
    "h": 90.8
  },
  "luminance": 0.41443
}

Semantic roles & 50–950 ramp

primary
#CBA940
secondary
#95A4D2
accent
#6DE047
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CBA940

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

Preview Lab → · Contrast checker → · Palette generator →

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