#AFB230#AFB230

#AFB230 is a light, vivid yellow. Relative luminance 0.412; OKLCH L 73.8% C 0.146 H 110.8°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#AFB230
RGBrgb(175, 178, 48)
HSLhsl(61, 58%, 44%)
HSVhsv(61, 73%, 70%)
CMYKcmyk(1.7%, 0%, 73%, 30.2%)
CIE-LABlab(70.29, -16.56, 61.84)
CIE-LCHlch(70.29, 64.02, 104.99°)
OKLaboklab(73.82% -0.0519 0.1365)
OKLCHoklch(73.82% 0.146 110.8)
XYZxyz(34.1343, 41.1691, 8.9441)
Luminance0.4117 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB230 #3330B2
analogous
#B27430 #AFB230 #6EB230
triadic
#AFB230 #30AFB2 #B230AF
tetradic
#AFB230 #30B274 #3330B2 #B2306E
square
#AFB230 #30B274 #3330B2 #B2306E
split-complementary
#AFB230 #306EB2 #7430B2
monochromatic
#505216 #808223 #AFB230 #CDD050 #DBDD80

Accessibility & contrast

On white

2.27
#AFB230 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#AFB230 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB230
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB230#FFFFFF#000000##000000
##AFB2301.002.279.239.23
#FFFFFF2.271.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA16
Deuteranopia (green-blind)
#C1AE3A
Tritanopia (blue-blind)
#BBA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb230;
/* rgb */ color: rgb(175, 178, 48);
/* oklch */ color: oklch(73.8% 0.146 110.8);
Tailwind
colors: {
  custom: {
    50: '#cac872',
    500: '#afb230',
    950: '#000000',
  },
}
SCSS
$custom: #afb230;
$custom-light: #cac872;
$custom-dark: #000000;
JSON
{
  "hex": "#afb230",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 48
  },
  "hsl": {
    "h": 61.385,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.73823,
    "c": 0.14604,
    "h": 110.8
  },
  "luminance": 0.41168
}

Semantic roles & 50–950 ramp

primary
#AFB230
secondary
#7A78C6
accent
#47E14B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB230

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

Preview Lab → · Contrast checker → · Palette generator →

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