#AFB23E#AFB23E

#AFB23E is a light, vivid yellow. Relative luminance 0.413; OKLCH L 73.9% C 0.137 H 110.7°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#AFB23E
RGBrgb(175, 178, 62)
HSLhsl(62, 48%, 47%)
HSVhsv(62, 65%, 70%)
CMYKcmyk(1.7%, 0%, 65.2%, 30.2%)
CIE-LABlab(70.39, -15.80, 56.61)
CIE-LCHlch(70.39, 58.78, 105.59°)
OKLaboklab(73.93% -0.0484 0.1278)
OKLCHoklch(73.93% 0.137 110.7)
XYZxyz(34.4701, 41.3034, 10.7131)
Luminance0.4130 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB23E #413EB2
analogous
#B27B3E #AFB23E #75B23E
triadic
#AFB23E #3EAFB2 #B23EAF
tetradic
#AFB23E #3EB27B #413EB2 #B23E75
square
#AFB23E #3EB27B #413EB2 #B23E75
split-complementary
#AFB23E #3E75B2 #7B3EB2
monochromatic
#56571E #82852E #AFB23E #C6C964 #D7D992

Accessibility & contrast

On white

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

On black

9.26
#AFB23E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB23E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB23E#FFFFFF#000000##000000
##AFB23E1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA2E
Deuteranopia (green-blind)
#C0AE46
Tritanopia (blue-blind)
#BBA79A
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb23e;
/* rgb */ color: rgb(175, 178, 62);
/* oklch */ color: oklch(73.9% 0.137 110.7);
Tailwind
colors: {
  custom: {
    50: '#cac879',
    500: '#afb23e',
    950: '#000000',
  },
}
SCSS
$custom: #afb23e;
$custom-light: #cac879;
$custom-dark: #000000;
JSON
{
  "hex": "#afb23e",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 62
  },
  "hsl": {
    "h": 61.552,
    "s": 48.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.73928,
    "c": 0.13669,
    "h": 110.7
  },
  "luminance": 0.41303
}

Semantic roles & 50–950 ramp

primary
#AFB23E
secondary
#8988C4
accent
#50D853
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB23E

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

Preview Lab → · Contrast checker → · Palette generator →

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