#CFA831#CFA831

#CFA831 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.7% C 0.137 H 89.7°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#CFA831
RGBrgb(207, 168, 49)
HSLhsl(45, 62%, 50%)
HSVhsv(45, 76%, 81%)
CMYKcmyk(0%, 18.8%, 76.3%, 18.8%)
CIE-LABlab(70.52, 2.67, 62.73)
CIE-LCHlch(70.52, 62.79, 87.57°)
OKLaboklab(74.69% 0.0008 0.1373)
OKLCHoklch(74.69% 0.137 89.7)
XYZxyz(40.2915, 41.4950, 8.7923)
Luminance0.4149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFA831 #3158CF
analogous
#CF5931 #CFA831 #A7CF31
triadic
#CFA831 #31CFA8 #A831CF
tetradic
#CFA831 #31CF59 #3158CF #CF31A7
square
#CFA831 #31CF59 #3158CF #CF31A7
split-complementary
#CFA831 #31A7CF #5931CF
monochromatic
#6C5819 #9E8025 #CFA831 #DBBD63 #E6D294

Accessibility & contrast

On white

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

On black

9.30
#CFA831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFA831
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFA831#FFFFFF#000000##000000
##CFA8311.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA61B
Deuteranopia (green-blind)
#C5B138
Tritanopia (blue-blind)
#E09991
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cfa831;
/* rgb */ color: rgb(207, 168, 49);
/* oklch */ color: oklch(74.7% 0.137 89.7);
Tailwind
colors: {
  custom: {
    50: '#e2c172',
    500: '#cfa831',
    950: '#000000',
  },
}
SCSS
$custom: #cfa831;
$custom-light: #e2c172;
$custom-dark: #000000;
JSON
{
  "hex": "#cfa831",
  "rgb": {
    "r": 207,
    "g": 168,
    "b": 49
  },
  "hsl": {
    "h": 45.19,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.74691,
    "c": 0.13728,
    "h": 89.7
  },
  "luminance": 0.41492
}

Semantic roles & 50–950 ramp

primary
#CFA831
secondary
#8B9CD1
accent
#6BE543
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #CFA831

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

Preview Lab → · Contrast checker → · Palette generator →

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