#CFA238#CFA238

#CFA238 is a light, vivid orange. Relative luminance 0.394; OKLCH L 73.5% C 0.130 H 84.9°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#CFA238
RGBrgb(207, 162, 56)
HSLhsl(42, 61%, 52%)
HSVhsv(42, 73%, 81%)
CMYKcmyk(0%, 21.7%, 72.9%, 18.8%)
CIE-LABlab(69.04, 6.18, 58.63)
CIE-LCHlch(69.04, 58.95, 83.98°)
OKLaboklab(73.54% 0.0116 0.13)
OKLCHoklch(73.54% 0.13 84.9)
XYZxyz(39.3687, 39.3943, 9.2709)
Luminance0.3939 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFA238 #3865CF
analogous
#CF5738 #CFA238 #B1CF38
triadic
#CFA238 #38CFA2 #A238CF
tetradic
#CFA238 #38CF57 #3865CF #CF38B1
square
#CFA238 #38CF57 #3865CF #CF38B1
split-complementary
#CFA238 #38B1CF #5738CF
monochromatic
#71581B #A37E27 #CFA238 #DBB969 #E7D09B

Accessibility & contrast

On white

2.37
#CFA238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#CFA238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFA238
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFA238#FFFFFF#000000##000000
##CFA2381.002.378.888.88
#FFFFFF2.371.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A229
Deuteranopia (green-blind)
#C1AD3D
Tritanopia (blue-blind)
#E0938D
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #cfa238;
/* rgb */ color: rgb(207, 162, 56);
/* oklch */ color: oklch(73.5% 0.130 84.9);
Tailwind
colors: {
  custom: {
    50: '#e2bd75',
    500: '#cfa238',
    950: '#000000',
  },
}
SCSS
$custom: #cfa238;
$custom-light: #e2bd75;
$custom-dark: #000000;
JSON
{
  "hex": "#cfa238",
  "rgb": {
    "r": 207,
    "g": 162,
    "b": 56
  },
  "hsl": {
    "h": 42.119,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.73537,
    "c": 0.13047,
    "h": 84.9
  },
  "luminance": 0.39392
}

Semantic roles & 50–950 ramp

primary
#CFA238
secondary
#90A4D3
accent
#73E444
background
#FEFBF7
surface
#FDF6ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CFA238

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

Preview Lab → · Contrast checker → · Palette generator →

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