#AFA230#AFA230

#AFA230 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.3% C 0.131 H 102.7°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#AFA230
RGBrgb(175, 162, 48)
HSLhsl(54, 57%, 44%)
HSVhsv(54, 73%, 69%)
CMYKcmyk(0%, 7.4%, 72.6%, 31.4%)
CIE-LABlab(65.88, -8.26, 57.60)
CIE-LCHlch(65.88, 58.19, 98.16°)
OKLaboklab(70.3% -0.0286 0.1275)
OKLCHoklch(70.3% 0.131 102.7)
XYZxyz(31.1344, 35.1693, 7.9441)
Luminance0.3517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA230 #303DAF
analogous
#AF6230 #AFA230 #7CAF30
triadic
#AFA230 #30AFA2 #A230AF
tetradic
#AFA230 #30AF62 #303DAF #AF307C
square
#AFA230 #30AF62 #303DAF #AF307C
split-complementary
#AFA230 #307CAF #6230AF
monochromatic
#4F4916 #7F7623 #AFA230 #CEC14E #DCD27E

Accessibility & contrast

On white

2.61
#AFA230 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#AFA230 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA230
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA230#FFFFFF#000000##000000
##AFA2301.002.618.038.03
#FFFFFF2.611.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1D
Deuteranopia (green-blind)
#B5A338
Tritanopia (blue-blind)
#BC968C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa230;
/* rgb */ color: rgb(175, 162, 48);
/* oklch */ color: oklch(70.3% 0.131 102.7);
Tailwind
colors: {
  custom: {
    50: '#cabd70',
    500: '#afa230',
    950: '#000000',
  },
}
SCSS
$custom: #afa230;
$custom-light: #cabd70;
$custom-dark: #000000;
JSON
{
  "hex": "#afa230",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 48
  },
  "hsl": {
    "h": 53.858,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.70304,
    "c": 0.1307,
    "h": 102.7
  },
  "luminance": 0.35168
}

Semantic roles & 50–950 ramp

primary
#AFA230
secondary
#767EC4
accent
#57E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA230

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

Preview Lab → · Contrast checker → · Palette generator →

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