#C8B731#C8B731

#C8B731 is a light, vivid yellow. Relative luminance 0.464; OKLCH L 77.1% C 0.147 H 101.8°. Best body text is #000000 at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#C8B731
RGBrgb(200, 183, 49)
HSLhsl(53, 61%, 49%)
HSVhsv(53, 76%, 78%)
CMYKcmyk(0%, 8.5%, 75.5%, 21.6%)
CIE-LABlab(73.78, -8.27, 65.54)
CIE-LCHlch(73.78, 66.06, 97.19°)
OKLaboklab(77.12% -0.0299 0.1436)
OKLCHoklch(77.12% 0.147 101.8)
XYZxyz(41.3092, 46.3700, 9.6795)
Luminance0.4637 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8B731 #3142C8
analogous
#C86C31 #C8B731 #8EC831
triadic
#C8B731 #31C8B7 #B731C8
tetradic
#C8B731 #31C86C #3142C8 #C8318E
square
#C8B731 #31C86C #3142C8 #C8318E
split-complementary
#C8B731 #318EC8 #6C31C8
monochromatic
#665D19 #978A25 #C8B731 #D8CA5F #E4DA90

Accessibility & contrast

On white

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

On black

10.27
#C8B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8B731
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8B731#FFFFFF#000000##000000
##C8B7311.002.0410.2710.27
#FFFFFF2.041.0021.0021.00
#00000010.2721.001.001.00
##00000010.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B115
Deuteranopia (green-blind)
#CDB83B
Tritanopia (blue-blind)
#D8AA9D
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #c8b731;
/* rgb */ color: rgb(200, 183, 49);
/* oklch */ color: oklch(77.1% 0.147 101.8);
Tailwind
colors: {
  custom: {
    50: '#ddcc73',
    500: '#c8b731',
    950: '#000000',
  },
}
SCSS
$custom: #c8b731;
$custom-light: #ddcc73;
$custom-dark: #000000;
JSON
{
  "hex": "#c8b731",
  "rgb": {
    "r": 200,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 53.245,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.7712,
    "c": 0.14666,
    "h": 101.8
  },
  "luminance": 0.46368
}

Semantic roles & 50–950 ramp

primary
#C8B731
secondary
#868FCE
accent
#56E444
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #C8B731

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

Preview Lab → · Contrast checker → · Palette generator →

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