#C0BA31#C0BA31

#C0BA31 is a light, vivid yellow. Relative luminance 0.465; OKLCH L 77.0% C 0.150 H 106.9°. Best body text is #000000 at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#C0BA31
RGBrgb(192, 186, 49)
HSLhsl(57, 59%, 47%)
HSVhsv(57, 74%, 75%)
CMYKcmyk(0%, 3.1%, 74.5%, 24.7%)
CIE-LABlab(73.90, -13.26, 65.40)
CIE-LCHlch(73.90, 66.73, 101.46°)
OKLaboklab(77.05% -0.0435 0.1436)
OKLCHoklch(77.05% 0.15 106.9)
XYZxyz(39.8531, 46.5474, 9.7904)
Luminance0.4655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C0BA31 #3137C0
analogous
#C07331 #C0BA31 #7EC031
triadic
#C0BA31 #31C0BA #BA31C0
tetradic
#C0BA31 #31C073 #3137C0 #C0317E
square
#C0BA31 #31C073 #3137C0 #C0317E
split-complementary
#C0BA31 #317EC0 #7331C0
monochromatic
#5E5C18 #8F8B25 #C0BA31 #D5D059 #E1DE8A

Accessibility & contrast

On white

2.04
#C0BA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.31
#C0BA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C0BA31
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C0BA31#FFFFFF#000000##000000
##C0BA311.002.0410.3110.31
#FFFFFF2.041.0021.0021.00
#00000010.3121.001.001.00
##00000010.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB313
Deuteranopia (green-blind)
#CDB83C
Tritanopia (blue-blind)
#CEADA0
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #c0ba31;
/* rgb */ color: rgb(192, 186, 49);
/* oklch */ color: oklch(77.0% 0.150 106.9);
Tailwind
colors: {
  custom: {
    50: '#d7ce74',
    500: '#c0ba31',
    950: '#000000',
  },
}
SCSS
$custom: #c0ba31;
$custom-light: #d7ce74;
$custom-dark: #000000;
JSON
{
  "hex": "#c0ba31",
  "rgb": {
    "r": 192,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 57.483,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.77045,
    "c": 0.15006,
    "h": 106.9
  },
  "luminance": 0.46546
}

Semantic roles & 50–950 ramp

primary
#C0BA31
secondary
#8285CB
accent
#4CE345
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C0BA31

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

Preview Lab → · Contrast checker → · Palette generator →

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